| 
				
			 | 
			
			
				@@ -29,13 +29,6 @@ 
			 | 
		
	
		
			
			| 
				29
			 | 
			
				29
			 | 
			
			
				 	self.bindedViewController = nil; 
			 | 
		
	
		
			
			| 
				30
			 | 
			
				30
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				31
			 | 
			
				31
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				32
			 | 
			
				
			 | 
			
			
				-- (void)testApplyOptions_shouldSetTabBarItemBadgeWithDefaultWhenParentIsUITabBarController { 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				
			 | 
			
			
				-	OCMStub([self.mockBindedViewController parentViewController]).andReturn([UITabBarController new]); 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				
			 | 
			
			
				-	[[self.mockBindedViewController expect] rnn_setTabBarItemBadge:nil]; 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				
			 | 
			
			
				-	[self.uut applyOptions:self.options]; 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				
			 | 
			
			
				-	[self.mockBindedViewController verify]; 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				32
			 | 
			
			
				 - (void)testApplyOptions_shouldSetTabBarItemBadgeOnlyWhenParentIsUITabBarController { 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				33
			 | 
			
			
				 	[[self.mockBindedViewController reject] rnn_setTabBarItemBadge:[OCMArg any]]; 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				34
			 | 
			
			
				 	[self.uut applyOptions:self.options]; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -58,4 +51,12 @@ 
			 | 
		
	
		
			
			| 
				58
			 | 
			
				51
			 | 
			
			
				 	[self.mockBindedViewController verify]; 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				52
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				53
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+- (void)testApplyOptions_setTabBarItemBadgeShouldWhenNoValue { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+	[self.uut bindViewController:self.mockBindedViewController]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+	self.options.bottomTab.badge = nil; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+	[[self.mockBindedViewController reject] rnn_setTabBarItemBadge:[OCMArg any]]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				58
			 | 
			
			
				+	[self.uut applyOptions:self.options]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				59
			 | 
			
			
				+	[self.mockBindedViewController verify]; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				60
			 | 
			
			
				+} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				61
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				62
			 | 
			
			
				 @end 
			 |