|
@@ -33,7 +33,7 @@
|
33
|
33
|
[self.bindedViewController verify];
|
34
|
34
|
}
|
35
|
35
|
|
36
|
|
-- (void)testApplyOptions_shouldSetInitialOptions {
|
|
36
|
+- (void)testApplyOptions_shouldApplyOptions {
|
37
|
37
|
RNNNavigationOptions* initialOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
|
38
|
38
|
initialOptions.bottomTabs.testID = [[Text alloc] initWithValue:@"testID"];
|
39
|
39
|
initialOptions.bottomTabs.backgroundColor = [[Color alloc] initWithValue:[UIColor redColor]];
|
|
@@ -53,4 +53,13 @@
|
53
|
53
|
[self.bindedViewController verify];
|
54
|
54
|
}
|
55
|
55
|
|
|
56
|
+- (void)testApplyOptions_shouldApplyOptionsOnInit {
|
|
57
|
+ RNNNavigationOptions* initialOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
|
|
58
|
+ initialOptions.bottomTabs.currentTabIndex = [[IntNumber alloc] initWithValue:@(1)];
|
|
59
|
+ [[self.bindedViewController expect] rnn_setCurrentTabIndex:1];
|
|
60
|
+
|
|
61
|
+ [self.uut applyOptionsOnInit:initialOptions];
|
|
62
|
+ [self.bindedViewController verify];
|
|
63
|
+}
|
|
64
|
+
|
56
|
65
|
@end
|