summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/DevAPISpecs/SDLVoiceCommandSpec.m
blob: 8e8a2e7c3c2ebd56ecff223cce8593f0e4d8cc4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#import <Quick/Quick.h>
#import <Nimble/Nimble.h>

#import "SDLVoiceCommand.h"

QuickSpecBegin(SDLVoiceCommandSpec)

describe(@"a voice command", ^{
    __block SDLVoiceCommand *testCommand = nil;

    describe(@"initializing", ^{
        __block NSArray<NSString *> *someVoiceCommands = nil;

        beforeEach(^{
            someVoiceCommands = @[@"some command"];
        });

        it(@"should initialize properly", ^{
            testCommand = [[SDLVoiceCommand alloc] initWithVoiceCommands:someVoiceCommands handler:^{}];

            expect(testCommand.voiceCommands).to(equal(someVoiceCommands));
        });
    });
});

QuickSpecEnd