summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/search_controller_test.rb3
1 files changed, 1 insertions, 2 deletions
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)