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/document_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/document_test.rb')
-rw-r--r-- | test/unit/document_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb index 7a7cff79c..5a2651a49 100644 --- a/test/unit/document_test.rb +++ b/test/unit/document_test.rb @@ -53,7 +53,7 @@ class DocumentTest < ActiveSupport::TestCase def test_create_with_default_category # Sets a default category e = Enumeration.find_by_name('Technical documentation') - e.update_attributes(:is_default => true) + e.update(:is_default => true) doc = Document.new(:project => Project.find(1), :title => 'New document') assert_equal e, doc.category |