From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:45:13 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/unit/version_test.rb X-Git-Tag: 4.2.0~1396 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d65cdf018d29f429a29edf401032366985953cbe;p=redmine.git 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 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 92e4dcb5e..c2a45d7d6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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/version_test.rb' # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. 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