spec/unit/tables/table_screen_spec.rb in ProMotion-1.0.0 vs spec/unit/tables/table_screen_spec.rb in ProMotion-1.0.1
- old
+ new
@@ -5,9 +5,16 @@
before do
@screen = TestTableScreen.new
@screen.on_load
end
+ it "should add an image right nav bar button" do
+ image = UIImage.imageNamed("list.png")
+ # @screen.set_nav_bar_button :right, image: image, action: :return_to_some_other_screen, type: UIBarButtonItemStylePlain
+ @screen.navigationItem.rightBarButtonItem.image.class.should == UIImage
+ @screen.navigationItem.rightBarButtonItem.image.should == image
+ end
+
it "should display some sections" do
@screen.promotion_table_data.sections.should.be.kind_of(Array)
end
it "should have proper cell numbers" do