|
@@ -44,8 +44,6 @@
|
44
|
44
|
self.options.sideMenu.right.shouldStretchDrawer = [[Bool alloc] initWithBOOL:NO];
|
45
|
45
|
self.options.sideMenu.right.animationVelocity = [[Double alloc] initWithValue:@(100.0f)];
|
46
|
46
|
self.options.sideMenu.left.animationVelocity = [[Double alloc] initWithValue:@(100.0f)];
|
47
|
|
- self.options.sideMenu.right.width = [[Double alloc] initWithValue:@(100.0f)];
|
48
|
|
- self.options.sideMenu.left.width = [[Double alloc] initWithValue:@(100.0f)];
|
49
|
47
|
|
50
|
48
|
[[self.bindedViewController expect] side:MMDrawerSideLeft enabled:NO];
|
51
|
49
|
[[self.bindedViewController expect] side:MMDrawerSideRight enabled:NO];
|
|
@@ -53,13 +51,24 @@
|
53
|
51
|
[[self.bindedViewController expect] setShouldStretchRightDrawer:NO];
|
54
|
52
|
[[self.bindedViewController expect] setAnimationVelocityLeft:100.0f];
|
55
|
53
|
[[self.bindedViewController expect] setAnimationVelocityRight:100.0f];
|
|
54
|
+
|
|
55
|
+ [self.uut applyOptions:self.options];
|
|
56
|
+
|
|
57
|
+ [self.bindedViewController verify];
|
|
58
|
+}
|
|
59
|
+
|
|
60
|
+- (void)testApplyOptionsOnInitShouldSetWidthOptions {
|
|
61
|
+ self.options.sideMenu.right.width = [[Double alloc] initWithValue:@(100.0f)];
|
|
62
|
+ self.options.sideMenu.left.width = [[Double alloc] initWithValue:@(100.0f)];
|
|
63
|
+
|
56
|
64
|
[[self.bindedViewController expect] side:MMDrawerSideLeft width:100.0f];
|
57
|
65
|
[[self.bindedViewController expect] side:MMDrawerSideRight width:100.0f];
|
58
|
66
|
|
59
|
|
- [self.uut applyOptions:self.options];
|
|
67
|
+ [self.uut applyOptionsOnInit:self.options];
|
60
|
68
|
|
61
|
69
|
[self.bindedViewController verify];
|
62
|
70
|
}
|
63
|
71
|
|
64
|
72
|
|
|
73
|
+
|
65
|
74
|
@end
|