Sha256: 95b454f190b1c428deb72391b4eed4eff198c1fe55711045376a82be7774fefe

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

describe "PM::Table module indexable" do

  before do
    @screen = TableScreenIndexable.new
  end

  it "should automatically return the first letter of each section" do
    result = %w{ A G M O S U }
    @screen.sectionIndexTitlesForTableView(@screen.table_view).should == result
  end

end

describe "PM::Table module indexable/searchable" do

  before do
    @screen = TableScreenIndexableSearchable.new
  end

  it "should automatically return the first letter of each section" do
    result = %w{ {search} A G M O S U }
    @screen.sectionIndexTitlesForTableView(@screen.table_view).should == result
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ProMotion-2.0.0.rc4 spec/unit/tables/table_indexable_spec.rb
ProMotion-2.0.0.rc3 spec/unit/tables/table_indexable_spec.rb
ProMotion-2.0.0.rc2 spec/unit/tables/table_indexable_spec.rb
ProMotion-2.0.0.rc1 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.2.1 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.2.0 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.1.2 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.1.1 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.1.0 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.1.0.rc1 spec/unit/tables/table_indexable_spec.rb
ProMotion-1.0.4 spec/unit/tables/table_indexable_spec.rb