Sha256: 7f0e38078cc0dc7e081a31eee9391f0f875a2309e418361405fa4c8ae6314c51

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

describe "ProMotion::Screen UIView title functionality" do
  tests PM::Screen

  # Override controller to properly instantiate
  def controller
    rotate_device to: :portrait, button: :bottom
    @image_title_screen ||= ViewTitleScreen.new(nav_bar: true)
    @root_screen = @image_title_screen
    @image_title_screen.navigationController
  end

  after do
    @controller = nil
    @root_screen = nil
  end

  it "should allow an image title" do
    @root_screen.navigationItem.titleView.should.not.be.kind_of UIImageView
    @root_screen.navigationItem.titleView.should.be.kind_of UIView
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/functional/func_view_title_screen.rb
ProMotion-1.2.0 spec/functional/func_view_title_screen.rb