spec/unit/screen_helpers_spec.rb in ProMotion-2.5.0 vs spec/unit/screen_helpers_spec.rb in ProMotion-2.6.0

- old
+ new

@@ -87,11 +87,16 @@ @screen.navigationItem.send(buttonItemMethod).class.should == UIBarButtonItem end end - it "allows setting a nav_bar_button with a class method" do + it "allows setting nav bar buttons via nav_bar_button class method" do screen = DetailScreen.new(nav_bar: true) + + screen.navigationItem.leftBarButtonItem.title.should == 'Back' + screen.navigationItem.rightBarButtonItem.title.should == 'More' + + screen.navigationItem.leftBarButtonItem.class.should == UIBarButtonItem screen.navigationItem.rightBarButtonItem.class.should == UIBarButtonItem end end describe "screen navigation" do