|
@@ -28,6 +28,19 @@
|
28
|
28
|
[_bindedViewController verify];
|
29
|
29
|
}
|
30
|
30
|
|
|
31
|
+- (void)testApplyOptions_shouldSetBackButtonColor_withDefaultValues {
|
|
32
|
+ [[_bindedViewController expect] rnn_setBackButtonColor:nil];
|
|
33
|
+ [self.uut applyOptions:self.options];
|
|
34
|
+ [_bindedViewController verify];
|
|
35
|
+}
|
|
36
|
+
|
|
37
|
+- (void)testApplyOptions_shouldSetBackButtonColor_withColor {
|
|
38
|
+ self.options.topBar.backButton.color = [[Color alloc] initWithValue:[UIColor redColor]];
|
|
39
|
+ [[_bindedViewController expect] rnn_setBackButtonColor:[UIColor redColor]];
|
|
40
|
+ [self.uut applyOptions:self.options];
|
|
41
|
+ [_bindedViewController verify];
|
|
42
|
+}
|
|
43
|
+
|
31
|
44
|
- (void)testApplyOptionsOnWillMoveToParent_shouldSetBackButtonOnBindedViewController_withIcon {
|
32
|
45
|
Image* image = [[Image alloc] initWithValue:[UIImage new]];
|
33
|
46
|
self.options.topBar.backButton.icon = image;
|