spec/screen_helpers_spec.rb in ProMotion-0.6.1 vs spec/screen_helpers_spec.rb in ProMotion-0.6.2
- old
+ new
@@ -66,9 +66,18 @@
@screen.set_nav_bar_left_button image, action: :return_to_some_other_screen, type: UIBarButtonItemStylePlain
@screen.navigationItem.leftBarButtonItem.image.class.should == UIImage
@screen.navigationItem.leftBarButtonItem.image.should == image
end
+ it "should add a left UIBarButtonItem" do
+ @screen.set_nav_bar_left_button @screen.editButtonItem
+ @screen.navigationItem.leftBarButtonItem.class.should == UIBarButtonItem
+ end
+
+ it "should add a right UIBarButtonItem" do
+ @screen.set_nav_bar_right_button @screen.editButtonItem
+ @screen.navigationItem.rightBarButtonItem.class.should == UIBarButtonItem
+ end
end
describe "screen navigation" do
before do