File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments