summaryrefslogtreecommitdiffstats
path: root/test/unit/version_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 15:10:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 15:10:57 +0000
commitcefde24aca947427493babf1ea373502a70cf433 (patch)
treece284e99cf3595d20d29c17e5f40e1d2a518015e /test/unit/version_test.rb
parent857c009dbaed99da559e9733d5575264dd4b46c9 (diff)
downloadredmine-cefde24aca947427493babf1ea373502a70cf433.tar.gz
redmine-cefde24aca947427493babf1ea373502a70cf433.zip
cleanup: rubocop: fix Layout/IndentFirstHashElement in test/unit/version_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19211 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/version_test.rb')
-rw-r--r--test/unit/version_test.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index 4806a4668..4d90839a6 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -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' => [