spec/unit/tables/table_searchable_spec.rb in ProMotion-2.6.1 vs spec/unit/tables/table_searchable_spec.rb in ProMotion-2.7.0

- old
+ new

@@ -20,22 +20,8 @@ class HiddenSearchScreen < TableScreenSearchable searchable hide_initially: true end screen = HiddenSearchScreen.new screen.on_load - screen.tableView.contentOffset.should == CGPointMake(0,screen.searchDisplayController.searchBar.frame.size.height) - end - - it "should display a custom message when there are no results" do - table_screen = TableScreenSymbolSearchableNoResults.new - table_screen.on_load - - table_screen.searchDisplayControllerWillBeginSearch(table_screen.searchDisplayController) - table_screen.searchDisplayController(table_screen.searchDisplayController, shouldReloadTableForSearchString:"supercalifragilisticexpialidocious") - table_screen.update_table_data - - results_label = table_screen.searchDisplayController.searchResultsTableView.subviews.detect{|v| v.is_a?(UILabel)} - wait_for_change results_label, 'text' do - results_label.text.should == "Nada!" - end + screen.tableView.contentOffset.should == CGPointMake(0, screen.tableView.tableHeaderView.frame.size.height) end end