summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 05:44:40 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 05:44:40 +0000
commitb4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff (patch)
tree621b55edf68585f45c8f37c27b726e0f297b046d
parent5b0ada0f32ef23e757df3a266967d0367663f3f9 (diff)
downloadredmine-b4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff.tar.gz
redmine-b4fc7d45a6b97178a23278b7ca3539f4c3e4c5ff.zip
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
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/helpers/issues_helper_test.rb22
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 [
- "<strong>User</strong> <i>Redmine Admin</i> added",
- "<strong>User</strong> deleted (<del><i>Dave Lopper, John Smith</i></del>)"
- ], details_to_strings(details, false)
+ assert_equal(
+ [
+ "User Redmine Admin added",
+ "User deleted (Dave Lopper, John Smith)"
+ ],
+ details_to_strings(details, true)
+ )
+ assert_equal(
+ [
+ "<strong>User</strong> <i>Redmine Admin</i> added",
+ "<strong>User</strong> deleted (<del><i>Dave Lopper, John Smith</i></del>)"
+ ],
+ details_to_strings(details, false)
+ )
end
def test_find_name_by_reflection_should_return_nil_for_missing_record