Sha256: 6f63449d723493463b8c70d02e2ef364ec480408e76735633255a0d632ea090c

Contents?: true

Size: 774 Bytes

Versions: 27

Compression:

Stored size: 774 Bytes

Contents

describe "load_view and on_load tests" do
  def screen
    @screen ||= LoadViewScreen.new
  end

  def table_screen
    @table_screen ||= LoadViewTableScreen.new
  end

  it "should call load_view when requesting the view" do
    screen.view.should.be.kind_of(MyView)
  end

  it "should call on_load after creating the view" do
    screen.view.should.be.kind_of(MyView)
    screen.view.backgroundColor.should == UIColor.redColor
  end

  it "should call load_view when requesting the view in a table screen" do
    table_screen.view.should.be.kind_of(MyTableView)
  end

  it "should call on_load after creating the view in a table screen" do
    table_screen.view.should.be.kind_of(MyTableView)
    table_screen.view.backgroundColor.should == UIColor.greenColor
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ProMotion-3.0.0 spec/unit/load_view_spec.rb
ProMotion-2.8.2 spec/unit/load_view_spec.rb
ProMotion-2.8.1 spec/unit/load_view_spec.rb
ProMotion-2.8.0 spec/unit/load_view_spec.rb
ProMotion-2.7.1 spec/unit/load_view_spec.rb
ProMotion-2.7.0 spec/unit/load_view_spec.rb
ProMotion-2.6.1 spec/unit/load_view_spec.rb
ProMotion-2.6.0 spec/unit/load_view_spec.rb
ProMotion-2.5.0 spec/unit/load_view_spec.rb
ProMotion-2.5.0.beta1 spec/unit/load_view_spec.rb
ProMotion-2.4.2 spec/unit/load_view_spec.rb
ProMotion-2.4.1 spec/unit/load_view_spec.rb
ProMotion-2.4.0 spec/unit/load_view_spec.rb
ProMotion-2.3.1 spec/unit/load_view_spec.rb
ProMotion-2.3.0 spec/unit/load_view_spec.rb
ProMotion-2.2.2 spec/unit/load_view_spec.rb
ProMotion-2.2.1 spec/unit/load_view_spec.rb
ProMotion-2.2.0 spec/unit/load_view_spec.rb
ProMotion-2.1.0 spec/unit/load_view_spec.rb
ProMotion-2.1.0.beta1 spec/unit/load_view_spec.rb