mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-24 01:08:50 +08:00
Add passing test for overriding split view button in portrait mode.
This commit is contained in:
@@ -63,4 +63,12 @@ describe "Split screen functional" do
|
||||
|
||||
end
|
||||
|
||||
it "should override the title on the button" do
|
||||
rotate_device to: :portrait, button: :bottom
|
||||
|
||||
test_title = "Test Title"
|
||||
@controller = @app.open_split_screen @master, @detail, button_title: test_title
|
||||
@detail.navigationItem.leftBarButtonItem.title.should == test_title
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user