Skip to content

Commit

Permalink
to OCMReject() instead of [[mockObject reject] methodToBeCalled]
Browse files Browse the repository at this point in the history
Summary: Reformatting OCMReject call to be consistent across tests

Reviewed By: tianqibt

Differential Revision: D15385737

fbshipit-source-id: b174e3f4974d9a78ee524bf78c029f2769c74e92
  • Loading branch information
Steven Gschwind authored and facebook-github-bot committed May 20, 2019
1 parent 11947ad commit a94d769
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ - (void)testAutoLogAppEventsEnabled {
- (void)testAutoLogAppEventsDisabled {
[OCMStub(ClassMethod([_settingsMock isAutoLogAppEventsEnabled])) andReturnValue: OCMOCK_VALUE(NO)];

[[_delegateMock reject] _logSDKInitialize];
OCMReject([_delegateMock _logSDKInitialize]);

id app = OCMClassMock([UIApplication class]);
[_delegate application:app didFinishLaunchingWithOptions:nil];
Expand Down

0 comments on commit a94d769

Please sign in to comment.