spec/unit/screen_helpers_spec.rb in ProMotion-2.2.2 vs spec/unit/screen_helpers_spec.rb in ProMotion-2.3.0

- old
+ new

@@ -86,9 +86,14 @@ @screen.set_nav_bar_button placement, system_item: :add @screen.navigationItem.send(buttonItemMethod).class.should == UIBarButtonItem end end + + it "allows setting a nav_bar_button with a class method" do + screen = DetailScreen.new(nav_bar: true) + screen.navigationItem.rightBarButtonItem.class.should == UIBarButtonItem + end end describe "screen navigation" do before do