spec/unit/screen_helpers_spec.rb in ProMotion-2.7.1 vs spec/unit/screen_helpers_spec.rb in ProMotion-2.8.0

- old
+ new

@@ -153,11 +153,11 @@ end @screen.send(:present_modal_view_controller, new_screen, { animated: true, completion: nil }) end it "should open a root screen if :close_all is provided" do - @screen.mock!(:open_root_screen) { |screen| screen.should.be.instance_of BasicScreen } + @screen.mock!(:open_root_screen) { |screen, args| screen.should.be.instance_of BasicScreen } screen = @screen.open BasicScreen, close_all: true screen.should.be.kind_of BasicScreen end it "should present a modal screen if :modal is provided" do @@ -216,10 +216,10 @@ end it "should open the provided view controller as root view if no other conditions are met" do parent_screen = HomeScreen.new new_screen = BasicScreen.new - parent_screen.mock!(:open_root_screen) { |vc| vc.should.be == new_screen } + parent_screen.mock!(:open_root_screen) { |vc, args| vc.should.be == new_screen } screen = parent_screen.open_screen new_screen screen.should == new_screen end it "should not double-open a view controller if it's already been opened" do