diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 09:25:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 09:25:12 +0000 |
commit | 1bb79568e5ab5f2a06f5a61e5b157eb008cf3e98 (patch) | |
tree | 337024d0ad7c677f187d63465434954e8798ecc9 /test/functional/search_controller_test.rb | |
parent | 45496b0eb2b57b3064ff0c7603f3cad27c78c8a5 (diff) | |
download | redmine-1bb79568e5ab5f2a06f5a61e5b157eb008cf3e98.tar.gz redmine-1bb79568e5ab5f2a06f5a61e5b157eb008cf3e98.zip |
Rails4: replace deprecated Relation#update_all at SearchControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12637 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/search_controller_test.rb')
-rw-r--r-- | test/functional/search_controller_test.rb | 3 |
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) |