From b4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:44:40 +0000 Subject: [PATCH] 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 --- .rubocop_todo.yml | 1 - test/helpers/issues_helper_test.rb | 22 ++++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) 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 -- 2.39.5