]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup: RuboCop: Fix Rails/ActiveRecordAliases in test/unit/issue_priority_test...
authorGo MAEDA <maeda@farend.jp>
Tue, 21 Jan 2020 04:27:12 +0000 (04:27 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 21 Jan 2020 04:27:12 +0000 (04:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19451 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_priority_test.rb

index 592d18f04bd508f358d0bd163368c3af3722c6d9..d2d17865b87880965002c11b9c62ec38ae611202 100644 (file)
@@ -111,7 +111,7 @@ class IssuePriorityTest < ActiveSupport::TestCase
     end
 
     default = IssuePriority.find_by_position(5)
-    default.update_attributes is_default: true
+    default.update is_default: true
 
     [1, 2, 3, 4].each do |p|
       assert IssuePriority.find_by_position(p).low?