summaryrefslogtreecommitdiffstats
path: root/test/unit/version_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 05:45:13 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 05:45:13 +0000
commitd65cdf018d29f429a29edf401032366985953cbe (patch)
treef1292f519845b2710af90783fd43b83ec7ccd8a7 /test/unit/version_test.rb
parent0957e562096b078bf1dfb38d31a7f738a19ac8c4 (diff)
downloadredmine-d65cdf018d29f429a29edf401032366985953cbe.tar.gz
redmine-d65cdf018d29f429a29edf401032366985953cbe.zip
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/unit/version_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19244 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/version_test.rb')
-rw-r--r--test/unit/version_test.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index 4d90839a6..a467a09db 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -319,10 +319,16 @@ class VersionTest < ActiveSupport::TestCase
)
assert_equal 'value1', version.custom_field_value(cf1)
assert_nil version.custom_field_value(cf2)
- version.send :safe_attributes=, {'custom_fields' => [
- {'id' => cf1.id.to_s, 'value' => 'valuea'},
- {'id' => cf2.id.to_s, 'value' => 'valueb'}
- ]}, user
+ version.send(
+ :safe_attributes=,
+ {'custom_fields' =>
+ [
+ {'id' => cf1.id.to_s, 'value' => 'valuea'},
+ {'id' => cf2.id.to_s, 'value' => 'valueb'}
+ ]
+ },
+ user
+ )
assert_equal 'valuea', version.custom_field_value(cf1)
assert_nil version.custom_field_value(cf2)
end