summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m')
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m
index 6d2fd0c79..8e0d85c5b 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleManagerSpec.m
@@ -668,6 +668,28 @@ describe(@"a lifecycle manager", ^{
});
});
+describe(@"configuring the lifecycle manager", ^{
+ __block SDLLifecycleConfiguration *lifecycleConfig = nil;
+ __block SDLLifecycleManager *testManager = nil;
+
+ beforeEach(^{
+ lifecycleConfig = [SDLLifecycleConfiguration defaultConfigurationWithAppName:@"Test app" fullAppId:@"Test ID"];
+ });
+
+ context(@"if no secondary transport is allowed", ^{
+ beforeEach(^{
+ lifecycleConfig.allowedSecondaryTransports = SDLSecondaryTransportsNone;
+
+ SDLConfiguration *config = [[SDLConfiguration alloc] initWithLifecycle:lifecycleConfig lockScreen:nil logging:nil fileManager:nil];
+ testManager = [[SDLLifecycleManager alloc] initWithConfiguration:config delegate:nil];
+ });
+
+ it(@"should not create a secondary transport manager", ^{
+ expect(testManager.secondaryTransportManager).to(beNil());
+ });
+ });
+});
+
QuickSpecEnd
#pragma clang diagnostic pop