spec/unit/tab_spec.rb in ProMotion-2.2.2 vs spec/unit/tab_spec.rb in ProMotion-2.3.0
- old
+ new
@@ -23,9 +23,13 @@
it "should have set a custom tab bar item" do
@tab_bar.tabBar.items.first.title.should == "Tab Item"
end
+ it "should allow setting image insets" do
+ @tab_bar.tabBar.items.first.imageInsets.should == UIEdgeInsetsMake(5,5,5,5)
+ end
+
it "should have set the others to their respective titles" do
@tab_bar.tabBar.items[1].title.should == "Basic"
@tab_bar.tabBar.items[2].title.should == "Home"
@tab_bar.tabBar.items[3].title.should == "Test tab title"
end