Skip to content

Commit

Permalink
DLNAServiceIntegrationTests: rename mock to stub to clarify usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Nikolskyi committed Jun 2, 2015
1 parent bba5b0c commit 45f1dff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

// use a custom delegate to avoid showing any UI and get the discovery
// callbacks
id delegateMock = OCMProtocolMock(@protocol(DiscoveryManagerDelegate));
manager.delegate = delegateMock;
id delegateStub = OCMProtocolMock(@protocol(DiscoveryManagerDelegate));
manager.delegate = delegateStub;

// use DLNA service only
[manager registerDeviceService:[DLNAService class]
Expand All @@ -58,7 +58,7 @@
expect([device serviceWithName:kConnectSDKDLNAServiceId]).notTo.beNil();
};

OCMStub([delegateMock discoveryManager:manager
OCMStub([delegateStub discoveryManager:manager
didFindDevice:
[OCMArg checkWithBlock:^BOOL(ConnectableDevice *device) {
if ([kExpectedDeviceName isEqualToString:device.friendlyName]) {
Expand Down

0 comments on commit 45f1dff

Please sign in to comment.