]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/unit/project_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:45:02 +0000 (05:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:45:02 +0000 (05:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19243 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/project_test.rb

index ee9d47c5460d143a30ac7abb99134c2bbece9f91..92e4dcb5ebc654a305b6fb9567ca7424b91e06ac 100644 (file)
@@ -158,7 +158,6 @@ Layout/IndentFirstArrayElement:
     - 'test/functional/repositories_mercurial_controller_test.rb'
     - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
     - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
-    - 'test/unit/project_test.rb'
     - 'test/unit/version_test.rb'
 
 # Cop supports --auto-correct.
index de4b632e890649135d8af0525a054e1946bee09c..1b46f48d8334f15866f5a3ce2abd2271776a8023 100644 (file)
@@ -1061,10 +1061,17 @@ class ProjectTest < ActiveSupport::TestCase
     assert_equal 'value1', project.custom_field_value(cf1)
     assert_nil project.custom_field_value(cf2)
 
-    project.send :safe_attributes=, {'custom_fields' => [
-                                      {'id' => cf1.id.to_s, 'value' => 'valuea'},
-                                      {'id' => cf2.id.to_s, 'value' => 'valueb'}
-                                    ]}, user
+    project.send(
+      :safe_attributes=,
+      {
+        'custom_fields' =>
+          [
+            {'id' => cf1.id.to_s, 'value' => 'valuea'},
+            {'id' => cf2.id.to_s, 'value' => 'valueb'}
+          ]
+      },
+      user
+   )
     assert_equal 'valuea', project.custom_field_value(cf1)
     assert_nil project.custom_field_value(cf2)
   end