diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index 30664f03c..2e55abc5e 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -190,8 +190,7 @@ class SearchControllerTest < ActionController::TestCase end def test_search_content - Issue.update_all("description = 'This is a searchkeywordinthecontent'", "id=1") - + Issue.where(:id => 1).update_all("description = 'This is a searchkeywordinthecontent'") get :index, :id => 1, :q => 'searchkeywordinthecontent', :titles_only => '' assert_equal false, assigns(:titles_only) results = assigns(:results)