Skip to content

Commit

Permalink
Call -stopMocking fter verifying each PhotosVC mock
Browse files Browse the repository at this point in the history
This makes no difference re: the testing glitch I’m seeing in #137 (comment) .
  • Loading branch information
cdzombak committed Jan 26, 2016
1 parent 2b5ccdd commit 922bdb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Example/Tests/NYTPhotosViewControllerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ - (void)testDoneButtonDismissalUserInitiatedFlagIsTrue {
[photosViewController doneButtonTapped:nil];

OCMVerifyAll(photosVCMock);
[photosVCMock stopMocking];
}

- (void)testGestureBasedDismissalUserInitiatedFlagIsTrue {
Expand All @@ -246,6 +247,7 @@ - (void)testGestureBasedDismissalUserInitiatedFlagIsTrue {
[photosViewController didPanWithGestureRecognizer:gestureRecognizerMock];

OCMVerifyAll(photosVCMock);
[photosVCMock stopMocking];
}

- (void)testProgrammaticDismissalUserInitiatedFlagIsFalse {
Expand All @@ -258,6 +260,7 @@ - (void)testProgrammaticDismissalUserInitiatedFlagIsFalse {
[photosViewController dismissViewControllerAnimated:YES completion:nil];

OCMVerifyAll(photosVCMock);
[photosVCMock stopMocking];
}

#pragma mark - Helpers
Expand Down

0 comments on commit 922bdb0

Please sign in to comment.