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:
parent
45496b0eb2
commit
1bb79568e5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue