]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentFirstArrayElement in test/helpers/issues_helper_te...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:44:40 +0000 (05:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:44:40 +0000 (05:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19241 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/helpers/issues_helper_test.rb

index dfe198c92c522f8245aa3491ec40458c0bbf9583..0dfe853468d674cc5ff2768a12f7dab241739c70 100644 (file)
@@ -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'
index afa33a6311aa343f7a7a0b71550b4745a6adbd28..45e32dbecbb489f221efd9c369261c495ba729aa 100644 (file)
@@ -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