Files
ProMotion/spec/unit/image_title_screen.rb
Mark Rickert 7d8377debd Fixes issue 524.
You can pass a string or UIImage instance to title_image
2014-08-12 11:54:24 -04:00

20 lines
519 B
Ruby

describe "ProMotion::Screen UIImage string title" do
def controller
@controller = ImageTitleScreen.new(nav_bar: true)
end
it "should allow an image title as a String" do
controller.navigationItem.titleView.should.be.kind_of UIImageView
end
end
describe "ProMotion::Screen UIImage title" do
def controller
@controller = UIImageTitleScreen.new(nav_bar: true)
end
it "should allow an image title as a UIImage" do
controller.navigationItem.titleView.should.be.kind_of UIImageView
end
end