summaryrefslogtreecommitdiffstats
path: root/test/functional/search_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-17 08:14:36 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-17 08:14:36 +0000
commit0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d (patch)
treed5d4d2aa395ad5ba2aab27fdd976b73803a4d80b /test/functional/search_controller_test.rb
parent178449e5290e6c6e733c7c169a49a7d3cfa97cba (diff)
downloadredmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.tar.gz
redmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.zip
Code cleanup: RuboCop: Rails/ActiveRecordAliases
update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914). git-svn-id: http://svn.redmine.org/redmine/trunk@18375 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/search_controller_test.rb')
-rw-r--r--test/functional/search_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb
index b84ce2795..77286ed42 100644
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -410,7 +410,7 @@ class SearchControllerTest < Redmine::ControllerTest
end
def test_results_should_be_escaped_once
- assert Issue.find(1).update_attributes(:subject => '<subject> escaped_once', :description => '<description> escaped_once')
+ assert Issue.find(1).update(:subject => '<subject> escaped_once', :description => '<description> escaped_once')
get :index, :params => {:q => 'escaped_once'}
assert_response :success
assert_select '#search-results' do
@@ -420,7 +420,7 @@ class SearchControllerTest < Redmine::ControllerTest
end
def test_keywords_should_be_highlighted
- assert Issue.find(1).update_attributes(:subject => 'subject highlighted', :description => 'description highlighted')
+ assert Issue.find(1).update(:subject => 'subject highlighted', :description => 'description highlighted')
get :index, :params => {:q => 'highlighted'}
assert_response :success
assert_select '#search-results' do