|
@@ -92,7 +92,7 @@
|
92
|
92
|
[_bindedViewController verify];
|
93
|
93
|
}
|
94
|
94
|
|
95
|
|
-- (void)testApplyOptionsBefoePoppingShouldSetTopBarBackgroundForPoppingViewController {
|
|
95
|
+- (void)testApplyOptionsBeforePoppingShouldSetTopBarBackgroundForPoppingViewController {
|
96
|
96
|
_options.topBar.background.color = [[Color alloc] initWithValue:[UIColor redColor]];
|
97
|
97
|
|
98
|
98
|
[[_bindedViewController expect] setTopBarBackgroundColor:_options.topBar.background.color.get];
|
|
@@ -100,6 +100,18 @@
|
100
|
100
|
[_bindedViewController verify];
|
101
|
101
|
}
|
102
|
102
|
|
|
103
|
+- (void)testApplyOptionsBeforePoppingShouldSetLargeTitleForPoppingViewController {
|
|
104
|
+ _options.topBar.largeTitle.visible = [[Bool alloc] initWithBOOL:YES];
|
|
105
|
+
|
|
106
|
+ [self.uut applyOptionsBeforePopping:self.options];
|
|
107
|
+ XCTAssertTrue([[self.uut.bindedViewController navigationBar] prefersLargeTitles]);
|
|
108
|
+}
|
103
|
109
|
|
|
110
|
+- (void)testApplyOptionsBeforePoppingShouldSetDefaultLargeTitleFalseForPoppingViewController {
|
|
111
|
+ _options.topBar.largeTitle.visible = nil;
|
|
112
|
+
|
|
113
|
+ [self.uut applyOptionsBeforePopping:self.options];
|
|
114
|
+ XCTAssertFalse([[self.uut.bindedViewController navigationBar] prefersLargeTitles]);
|
|
115
|
+}
|
104
|
116
|
|
105
|
117
|
@end
|