spec/unit/image_title_screen.rb in ProMotion-2.0.0 vs spec/unit/image_title_screen.rb in ProMotion-2.0.1
- old
+ new
@@ -1,9 +1,19 @@
-describe "ProMotion::Screen UIImage title" do
+describe "ProMotion::Screen UIImage string title" do
def controller
@controller = ImageTitleScreen.new(nav_bar: true)
end
- it "should allow an image title" do
+ 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