Sha256: d319384eca59a2a15325bc06cd9b36872ad2d532bd845135d28b2002ce2f067b

Contents?: true

Size: 1.88 KB

Versions: 6

Compression:

Stored size: 1.88 KB

Contents

class TableScreenSearchable < TestTableScreen

  searchable

  attr_accessor :will_end_search_called, :will_begin_search_called

  def table_data
    @search_table_data ||= [{
      cells: [
        { title: "Alabama" },
        { title: "Alaska" },
        { title: "Arizona" },
        { title: "Arkansas" },
        { title: "California" },
        { title: "Colorado" },
        { title: "Connecticut" },
        { title: "Delaware" },
        { title: "Florida" },
        { title: "Georgia" },
        { title: "Hawaii" },
        { title: "Idaho" },
        { title: "Illinois" },
        { title: "Indiana" },
        { title: "Iowa" },
        { title: "Kansas" },
        { title: "Kentucky" },
        { title: "Louisiana" },
        { title: "Maine" },
        { title: "Maryland" },
        { title: "Massachusetts" },
        { title: "Michigan" },
        { title: "Minnesota" },
        { title: "Mississippi" },
        { title: "Missouri" },
        { title: "Montana" },
        { title: "Nebraska" },
        { title: "Nevada" },
        { title: "New Hampshire" },
        { title: "New Jersey" },
        { title: "New Mexico" },
        { title: "New York" },
        { title: "North Carolina" },
        { title: "North Dakota" },
        { title: "Ohio" },
        { title: "Oklahoma" },
        { title: "Oregon" },
        { title: "Pennsylvania" },
        { title: "Rhode Island" },
        { title: "South Carolina" },
        { title: "South Dakota" },
        { title: "Tennessee" },
        { title: "Texas" },
        { title: "Utah" },
        { title: "Vermont" },
        { title: "Virginia" },
        { title: "Washington" },
        { title: "West Virginia" },
        { title: "Wisconsin" },
        { title: "Wyoming" }
      ]
    }]
  end

  def will_begin_search
    self.will_begin_search_called = true
  end

  def will_end_search
    self.will_end_search_called = true
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/table_screen_searchable.rb
ProMotion-1.2.0 spec/helpers/table_screen_searchable.rb
ProMotion-1.1.2 spec/helpers/table_screen_searchable.rb
ProMotion-1.1.1 spec/helpers/table_screen_searchable.rb
ProMotion-1.1.0 spec/helpers/table_screen_searchable.rb
ProMotion-1.1.0.rc1 spec/helpers/table_screen_searchable.rb