diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2019-09-27 14:08:09 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2019-09-27 14:08:09 -0400 |
commit | 27c1023eef0843b40499ec9f4d02cdec7550d617 (patch) | |
tree | 0eb5ca5f923f60df598732095f4b979e74c818a9 | |
parent | efca7b15597b7108020a8ca94beb080f1cd414de (diff) | |
download | sdl_ios-27c1023eef0843b40499ec9f4d02cdec7550d617.tar.gz |
Update testsfeature/issue-1389-app-services-hmicapabilities
-rw-r--r-- | Cartfile.resolved | 6 | ||||
-rw-r--r-- | SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m | 42 |
2 files changed, 14 insertions, 34 deletions
diff --git a/Cartfile.resolved b/Cartfile.resolved index ad013b84e..c74a6b293 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,4 +1,4 @@ -github "Quick/Nimble" "v8.0.1" -github "Quick/Quick" "v2.0.0" +github "Quick/Nimble" "v8.0.4" +github "Quick/Quick" "v2.2.0" github "erikdoe/ocmock" "v3.4.3" -github "uber/ios-snapshot-test-case" "6.0.3" +github "uber/ios-snapshot-test-case" "6.1.0" diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m index cae7e6ab4..8ecd92e6c 100644 --- a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m +++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m @@ -18,6 +18,8 @@ describe(@"SDLHMICapabilities struct", ^{ __block NSNumber *someNavigationState = @YES; __block NSNumber *someVideoStreamState = @NO; __block NSNumber *someRemoteControlState = @YES; + __block NSNumber *someAppServicesState = @YES; + context(@"When initialized with properties", ^{ beforeEach(^{ @@ -26,22 +28,15 @@ describe(@"SDLHMICapabilities struct", ^{ testStruct.navigation = someNavigationState; testStruct.videoStreaming = someVideoStreamState; testStruct.remoteControl = someRemoteControlState; + testStruct.appServices = someAppServicesState; }); - it(@"should properly set phone call", ^{ + it(@"should properly set properties", ^{ expect(testStruct.phoneCall).to(equal(somePhoneCallState)); - }); - - it(@"should properly set navigation", ^{ expect(testStruct.navigation).to(equal(someNavigationState)); - }); - - it(@"should properly set video streaming", ^{ expect(testStruct.videoStreaming).to(equal(someVideoStreamState)); - }); - - it(@"should properly set remote control", ^{ expect(testStruct.remoteControl).to(equal(someRemoteControlState)); + expect(testStruct.appServices).to(equal(someAppServicesState)); }); }); @@ -51,7 +46,8 @@ describe(@"SDLHMICapabilities struct", ^{ SDLRPCParameterNameNavigation: someNavigationState, SDLRPCParameterNamePhoneCall: somePhoneCallState, SDLRPCParameterNameVideoStreaming: someVideoStreamState, - SDLRPCParameterNameRemoteControl: someRemoteControlState + SDLRPCParameterNameRemoteControl: someRemoteControlState, + SDLRPCParameterNameAppServices: someAppServicesState }; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" @@ -59,20 +55,12 @@ describe(@"SDLHMICapabilities struct", ^{ #pragma clang diagnostic pop }); - it(@"should properly set phone call", ^{ + it(@"should properly set properties", ^{ expect(testStruct.phoneCall).to(equal(somePhoneCallState)); - }); - - it(@"should properly set navigation", ^{ expect(testStruct.navigation).to(equal(someNavigationState)); - }); - - it(@"should properly set video streaming", ^{ expect(testStruct.videoStreaming).to(equal(someVideoStreamState)); - }); - - it(@"should properly set remote control", ^{ expect(testStruct.remoteControl).to(equal(someRemoteControlState)); + expect(testStruct.appServices).to(equal(someAppServicesState)); }); }); @@ -81,20 +69,12 @@ describe(@"SDLHMICapabilities struct", ^{ testStruct = nil; }); - it(@"phoneCall should be nil", ^{ + it(@"properties should be nil", ^{ expect(testStruct.phoneCall).to(beNil()); - }); - - it(@"navigation should be nil", ^{ expect(testStruct.navigation).to(beNil()); - }); - - it(@"video streaming should be nil", ^{ expect(testStruct.videoStreaming).to(beNil()); - }); - - it(@"remote control should be nil", ^{ expect(testStruct.remoteControl).to(beNil()); + expect(testStruct.appServices).to(beNil()); }); }); }); |