spec/functional/func_screen_spec.rb in ProMotion-1.1.2 vs spec/functional/func_screen_spec.rb in ProMotion-1.2.0
- old
+ new
@@ -16,9 +16,13 @@
it "should have a navigation bar" do
view("Functional").should.be.kind_of UINavigationItemView
end
+ it "should allow a string title" do
+ views(UINavigationItemView).include?(UIImageView).should.not.be.true
+ end
+
it "should allow setting a left nav bar button" do
@root_screen.set_nav_bar_button :left, title: "Cool", action: :triggered_button
tap("Cool")
@root_screen.button_was_triggered.should.be.true
end