]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentFirstHashElement in test/unit/version_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:10:57 +0000 (15:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:10:57 +0000 (15:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19211 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/version_test.rb

index 4806a46685e2c95b0a507b284b78cc67b3f40513..4d90839a61b913264b5604974f584e22c0a286cd 100644 (file)
@@ -309,9 +309,14 @@ class VersionTest < ActiveSupport::TestCase
     user = User.find(2)
     version = Version.new(:project_id => 1, :name => 'v4')
 
-    version.send :safe_attributes=, {'custom_field_values' => {
-                                      cf1.id.to_s => 'value1', cf2.id.to_s => 'value2'
-                                    }}, user
+    version.send(
+      :safe_attributes=,
+      {
+        'custom_field_values' =>
+          {cf1.id.to_s => 'value1', cf2.id.to_s => 'value2'}
+      },
+      user
+    )
     assert_equal 'value1', version.custom_field_value(cf1)
     assert_nil version.custom_field_value(cf2)
     version.send :safe_attributes=, {'custom_fields' => [