spec/unit/split_screen_spec.rb in ProMotion-1.2.1 vs spec/unit/split_screen_spec.rb in ProMotion-2.0.0.rc1
- old
+ new
@@ -35,13 +35,13 @@
@split_screen.detail_screen.should == @detail_screen
@split_screen.viewControllers.last.should == (@detail_screen.navigationController || @detail_screen)
end
it "should set the title on both screens" do
- @master_screen.class.send(:get_title).should == "Master"
+ @master_screen.class.title.should == "Master"
@master_screen.title.should == "Master"
- @detail_screen.class.send(:get_title).should == "Detail"
+ @detail_screen.class.title.should == "Detail"
@detail_screen.title.should == "Detail"
end
end
# Regression test for https://github.com/clearsightstudio/ProMotion/issues/74
@@ -55,12 +55,12 @@
@split_screen = @app.open_split_screen @master_screen, @detail_screen
end
it "should set the title on both screens" do
- @master_screen.class.send(:get_title).should == "Test Title"
+ @master_screen.class.title.should == "Test Title"
@master_screen.title.should == "Test Title"
- @detail_screen.class.send(:get_title).should == "Detail"
+ @detail_screen.class.title.should == "Detail"
@detail_screen.title.should == "Detail"
end
end