From 1bb79568e5ab5f2a06f5a61e5b157eb008cf3e98 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 09:25:12 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at SearchControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12637 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/search_controller_test.rb | 3 +-- 1 file changed, 1 insertion(+), 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)