Rails4: replace deprecated Relation#update_all at SearchControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12637 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-11 09:25:12 +00:00
parent 45496b0eb2
commit 1bb79568e5
1 changed files with 1 additions and 2 deletions

View File

@ -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)