]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of test/unit/lib/redmine/helpers/diff_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Dec 2020 17:32:19 +0000 (17:32 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Dec 2020 17:32:19 +0000 (17:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20672 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/helpers/diff_test.rb

index fb95125dfb971ebaf42ba484d0f372344316f6f8..c896b9f52f91237ef6fc1f3564584220baad2bb8 100644 (file)
@@ -32,8 +32,9 @@ class DiffTest < ActiveSupport::TestCase
     after  = "other stuff <script>alert('foo');</alert>"
 
     computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
-    expected_diff = '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span> <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
-
+    expected_diff =
+      '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span>' \
+        ' <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
     assert_equal computed_diff, expected_diff
   end
 end