From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:44:40 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/helpers/issues_helper_te... X-Git-Tag: 4.2.0~1399 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff;p=redmine.git cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/helpers/issues_helper_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19241 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index dfe198c92..0dfe85346 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -156,7 +156,6 @@ Layout/IndentFirstArrayElement: - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - 'test/functional/auth_sources_controller_test.rb' - 'test/functional/repositories_mercurial_controller_test.rb' - - 'test/helpers/issues_helper_test.rb' - 'test/unit/issue_test.rb' - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb' - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb' diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb index afa33a631..45e32dbec 100644 --- a/test/helpers/issues_helper_test.rb +++ b/test/helpers/issues_helper_test.rb @@ -318,14 +318,20 @@ class IssuesHelperTest < Redmine::HelperTest details << JournalDetail.new(:property => 'cf', :prop_key => field.id.to_s, :old_value => '2', :value => nil) details << JournalDetail.new(:property => 'cf', :prop_key => field.id.to_s, :old_value => '3', :value => nil) - assert_equal [ - "User Redmine Admin added", - "User deleted (Dave Lopper, John Smith)" - ], details_to_strings(details, true) - assert_equal [ - "User Redmine Admin added", - "User deleted (Dave Lopper, John Smith)" - ], details_to_strings(details, false) + assert_equal( + [ + "User Redmine Admin added", + "User deleted (Dave Lopper, John Smith)" + ], + details_to_strings(details, true) + ) + assert_equal( + [ + "User Redmine Admin added", + "User deleted (Dave Lopper, John Smith)" + ], + details_to_strings(details, false) + ) end def test_find_name_by_reflection_should_return_nil_for_missing_record