Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkibuule committed Feb 27, 2015
1 parent 8de753a commit aad3d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example/Tests/JSKTimerViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ - (void)testThatDelegateFiresWhenTimerIsFinished {
// When
id mockDelegate = OCMProtocolMock(@protocol(JSKTimerViewDelegate));
timerView.delegate = mockDelegate;
OCMStub([mockDelegate timerDidFinish]).andDo(^(NSInvocation *invocation) {
OCMStub([mockDelegate timerDidFinish:timerView]).andDo(^(NSInvocation *invocation) {
XCTAssertFalse(timerView.isRunning, "Timer view should not be running during delegate call `timerDidFinish`");
XCTAssertTrue(timerView.isFinished, "Timer view should be finished during delegate call `timerDidFinish`");
XCTAssertEqual([timerView remainingDurationInSeconds], 0, "Timer view should have zero remaining seconds during delegate call `timerDidFinish`");
Expand Down

0 comments on commit aad3d3a

Please sign in to comment.