]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#update_all at SearchControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 09:25:12 +0000 (09:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 09:25:12 +0000 (09:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12637 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/search_controller_test.rb

index 30664f03c040cb36a785405856bb7f7805a79f81..2e55abc5ef88cbe56cf3af96658e4d2cfaa00486 100644 (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)