Skip to content

Commit 1272b08

Browse files
committed
Removed superfluous assertions.
1 parent 781ed9f commit 1272b08

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/OCMockTests/OCMockObjectPartialMocksTests.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,8 @@ - (void)testRecordsInvocationWhenRealObjectIsUsedAndMethodIsStubbed
329329
id mock = [OCMockObject partialMockForObject:realObject];
330330
[[[mock stub] andReturn:@"bar"] foo];
331331

332-
id res = [realObject foo];
332+
[realObject foo];
333333

334-
XCTAssertEqualObjects(@"bar", res);
335334
XCTAssertEqual(1, [[mock invocationsExcludingInitialize] count]);
336335
}
337336

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

344-
id res = [mock foo];
343+
[mock foo];
345344

346-
XCTAssertEqualObjects(@"bar", res);
347345
XCTAssertEqual(1, [[mock invocationsExcludingInitialize] count]);
348346
}
349347

0 commit comments

Comments
 (0)