From 45f1dff5b0af8c6536da7122817e8d5b8fb4869c Mon Sep 17 00:00:00 2001 From: Eugene Nikolskyi Date: Wed, 27 May 2015 18:53:19 -0700 Subject: [PATCH] DLNAServiceIntegrationTests: rename mock to stub to clarify usage --- ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m b/ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m index da44050..4500ce0 100644 --- a/ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m +++ b/ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m @@ -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] @@ -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]) {