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
329
329
id mock = [OCMockObject partialMockForObject: realObject];
330
330
[[[mock stub ] andReturn: @" bar" ] foo ];
331
331
332
- id res = [realObject foo ];
332
+ [realObject foo ];
333
333
334
- XCTAssertEqualObjects (@" bar" , res);
335
334
XCTAssertEqual (1 , [[mock invocationsExcludingInitialize ] count ]);
336
335
}
337
336
@@ -341,9 +340,8 @@ - (void)testRecordsInvocationWhenMockIsUsedAndMethodIsStubbed
341
340
id mock = [OCMockObject partialMockForObject: realObject];
342
341
[[[mock stub ] andReturn: @" bar" ] foo ];
343
342
344
- id res = [mock foo ];
343
+ [mock foo ];
345
344
346
- XCTAssertEqualObjects (@" bar" , res);
347
345
XCTAssertEqual (1 , [[mock invocationsExcludingInitialize ] count ]);
348
346
}
349
347
You can’t perform that action at this time.
0 commit comments