Sha256: ffa0e39ef67bc32d0973ef50034c4758cd63cfb7871bc68db610c55a20f3aa47

Contents?: true

Size: 697 Bytes

Versions: 10

Compression:

Stored size: 697 Bytes

Contents

describe "table screen refresh functionality" do

  # Note this test only works if on iOS 6+ or when using CKRefreshControl.

  before do
    @screen = TableScreenRefreshable.new
    @screen.on_load
  end

  it "should be refreshable" do
    @screen.class.get_refreshable.should == true
  end

  it "should create a refresh object" do
    @screen.instance_variable_get("@refresh_control").should.be.kind_of UIRefreshControl
  end

  it "should respond to start_refreshing and end_refreshing" do
    @screen.respond_to?(:start_refreshing).should == true
    @screen.respond_to?(:end_refreshing).should == true
  end

  # Animations cause the refresh object to fail when tested. Test manually.

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ProMotion-3.0.0 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.8.2 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.8.1 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.8.0 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.7.1 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.7.0 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.6.1 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.6.0 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.5.0 spec/unit/tables/table_refreshable_spec.rb
ProMotion-2.5.0.beta1 spec/unit/tables/table_refreshable_spec.rb