Skip to content

Commit

Permalink
Removed superfluous assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Jul 16, 2020
1 parent 781ed9f commit 1272b08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/OCMockTests/OCMockObjectPartialMocksTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,8 @@ - (void)testRecordsInvocationWhenRealObjectIsUsedAndMethodIsStubbed
id mock = [OCMockObject partialMockForObject:realObject];
[[[mock stub] andReturn:@"bar"] foo];

id res = [realObject foo];
[realObject foo];

XCTAssertEqualObjects(@"bar", res);
XCTAssertEqual(1, [[mock invocationsExcludingInitialize] count]);
}

Expand All @@ -341,9 +340,8 @@ - (void)testRecordsInvocationWhenMockIsUsedAndMethodIsStubbed
id mock = [OCMockObject partialMockForObject:realObject];
[[[mock stub] andReturn:@"bar"] foo];

id res = [mock foo];
[mock foo];

XCTAssertEqualObjects(@"bar", res);
XCTAssertEqual(1, [[mock invocationsExcludingInitialize] count]);
}

Expand Down

0 comments on commit 1272b08

Please sign in to comment.