diff options
author | Go MAEDA <maeda@farend.jp> | 2019-08-17 08:14:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-08-17 08:14:36 +0000 |
commit | 0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d (patch) | |
tree | d5d4d2aa395ad5ba2aab27fdd976b73803a4d80b /test/unit/issue_subtasking_test.rb | |
parent | 178449e5290e6c6e733c7c169a49a7d3cfa97cba (diff) | |
download | redmine-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/unit/issue_subtasking_test.rb')
-rw-r--r-- | test/unit/issue_subtasking_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb index 51d30d7e9..3deb9561e 100644 --- a/test/unit/issue_subtasking_test.rb +++ b/test/unit/issue_subtasking_test.rb @@ -249,7 +249,7 @@ class IssueSubtaskingTest < ActiveSupport::TestCase child = first_parent.generate_child!(:done_ratio => 20) assert_equal 30, first_parent.reload.done_ratio assert_equal 0, second_parent.reload.done_ratio - child.update_attributes(:parent_issue_id => second_parent.id) + child.update(:parent_issue_id => second_parent.id) assert_equal 40, first_parent.reload.done_ratio assert_equal 20, second_parent.reload.done_ratio end |