Sha256: 180195bb1cb296be3ada91f597692191d6a0e224d2615b86edca1e84b8a14917
Contents?: true
Size: 1.56 KB
Versions: 2
Compression:
Stored size: 1.56 KB
Contents
describe "Searchable table spec" do tests TableScreenSearchable # Override controller to properly instantiate def controller @controller ||= TableScreenSearchable.new(nav_bar: true) @controller.on_load @controller.navigation_controller end it "should be rotated in portrait mode" do rotate_device to: :portrait, button: :bottom true.should == true end it "should show all 50 states" do @controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 50 end it "should allow searching for all the 'New' states" do @controller.searchDisplayController(@controller, shouldReloadTableForSearchString:"New") @controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 4 end it "should allow ending searches" do @controller.searchDisplayController(@controller, shouldReloadTableForSearchString:"North") @controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 2 @controller.searchDisplayControllerWillEndSearch(@controller) @controller.tableView(@controller.tableView, numberOfRowsInSection:0).should == 50 end it "should expose the search_string variable and clear it properly" do @controller.searchDisplayController(@controller, shouldReloadTableForSearchString:"North") @controller.search_string.should == "north" @controller.original_search_string.should == "North" @controller.searchDisplayControllerWillEndSearch(@controller) @controller.search_string.should == false @controller.original_search_string.should == false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ProMotion-1.0.4 | spec/functional/func_searchable_table_spec.rb |
ProMotion-1.0.3 | spec/functional/func_searchable_table_spec.rb |