diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-08-15 12:00:29 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-08-15 12:00:29 +0000 |
commit | 80d89e2959b524c2ba799bc084308a56feb8da2d (patch) | |
tree | 6ceb9648057f8a0ea5d2a92b16a08f25df2f7fb5 /UnitTesting/GTMFoundationUnitTestingUtilities.m | |
parent | 368efd7dfff5327b78e9103272f51ac7e2ef5a28 (diff) |
[Author: grobbins]
Add a reset method to the boolean run loop context since, between tests, [context reset] looks more natural than [context setShouldStop:NO] and is more concise than allocating a new context.
R=thomasvl
APPROVED=dmaclach
DELTA=5 (5 added, 0 deleted, 0 changed)
Diffstat (limited to 'UnitTesting/GTMFoundationUnitTestingUtilities.m')
-rw-r--r-- | UnitTesting/GTMFoundationUnitTestingUtilities.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.m b/UnitTesting/GTMFoundationUnitTestingUtilities.m index 2f278d7..034c3c0 100644 --- a/UnitTesting/GTMFoundationUnitTestingUtilities.m +++ b/UnitTesting/GTMFoundationUnitTestingUtilities.m @@ -73,6 +73,10 @@ shouldStop_ = stop; } +- (void)reset { + shouldStop_ = NO; +} + @end @implementation NSRunLoop (GTMUnitTestingAdditions) |