diff options
author | Justin Gluck <justin.gluck@livio.io> | 2019-04-08 15:47:47 -0400 |
---|---|---|
committer | Justin Gluck <justin.gluck@livio.io> | 2019-04-08 15:47:47 -0400 |
commit | a399900fff1632f80d00deac9f34cd1ec3facbbd (patch) | |
tree | 128a7d21175dd53fef40cbb2924de510d71c744e /SmartDeviceLinkTests | |
parent | 0fcadd1638826b2e12996c3ebb506821b3780061 (diff) | |
download | sdl_ios-a399900fff1632f80d00deac9f34cd1ec3facbbd.tar.gz |
Fixed Pr issues
Diffstat (limited to 'SmartDeviceLinkTests')
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLPreloadChoicesOperationSpec.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLPreloadChoicesOperationSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLPreloadChoicesOperationSpec.m index bf289dc29..5bcf2d5de 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLPreloadChoicesOperationSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLPreloadChoicesOperationSpec.m @@ -73,8 +73,8 @@ describe(@"a preload choices operation", ^{ cellsWithStaticIcon = [NSSet setWithArray:@[cellWithStaticIcon]]; }); - context(@"menueName is not set", ^{ - it(@"should return a nil object", ^{ + context(@"if the menuName is not set", ^{ + it(@"should not send any requests", ^{ SDLTextField *primaryTextField = [[SDLTextField alloc] init]; primaryTextField.name = SDLTextFieldNameMenuName; displayCapabilities.textFields = @[]; @@ -182,7 +182,6 @@ describe(@"a preload choices operation", ^{ SDLChoiceCell *cellBasic = [[SDLChoiceCell alloc] initWithText:@"Cell1" artwork:nil voiceCommands:nil]; SDLChoiceCell *cellWithVR = [[SDLChoiceCell alloc] initWithText:@"Cell2" secondaryText:nil tertiaryText:nil voiceCommands:@[@"Cell2"] artwork:nil secondaryArtwork:nil]; SDLChoiceCell *cellWithAllText = [[SDLChoiceCell alloc] initWithText:@"Cell2" secondaryText:@"Cell2" tertiaryText:@"Cell2" voiceCommands:nil artwork:nil secondaryArtwork:nil]; - cellsWithoutArtwork = [NSSet setWithArray:@[cellBasic, cellWithVR, cellWithAllText]]; }); @@ -192,7 +191,6 @@ describe(@"a preload choices operation", ^{ describe(@"assembling choices", ^{ it(@"should be correct with no text and VR required", ^{ - testOp = [[SDLPreloadChoicesOperation alloc] initWithConnectionManager:testConnectionManager fileManager:testFileManager displayCapabilities:displayCapabilities isVROptional:NO cellsToPreload:cellsWithoutArtwork]; [testOp start]; NSArray<SDLCreateInteractionChoiceSet *> *receivedRequests = (NSArray<SDLCreateInteractionChoiceSet *> *)testConnectionManager.receivedRequests; |