summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:15:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:15:33 +0000
commit46ca8f6725f3f4910dfaaf7d7215cbc6e5037f5e (patch)
treebd6b2bbdbc43a7bfdcdca91321138ef3ccd6838b /test/unit/lib/redmine
parent2c020e132a035114f84fcaa4e3fbe56e85bdc3a3 (diff)
downloadredmine-46ca8f6725f3f4910dfaaf7d7215cbc6e5037f5e.tar.gz
redmine-46ca8f6725f3f4910dfaaf7d7215cbc6e5037f5e.zip
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_partials_with_html_entities
git-svn-id: http://svn.redmine.org/redmine/trunk@18975 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine')
-rw-r--r--test/unit/lib/redmine/unified_diff_test.rb21
1 files changed, 10 insertions, 11 deletions
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb
index c312a013e..b9a8aff1a 100644
--- a/test/unit/lib/redmine/unified_diff_test.rb
+++ b/test/unit/lib/redmine/unified_diff_test.rb
@@ -90,17 +90,16 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
end
def test_partials_with_html_entities
- raw = <<-DIFF
---- test.orig.txt Wed Feb 15 16:10:39 2012
-+++ test.new.txt Wed Feb 15 16:11:25 2012
-@@ -1,5 +1,5 @@
- Semicolons were mysteriously appearing in code diffs in the repository
-
--void DoSomething(std::auto_ptr<MyClass> myObj)
-+void DoSomething(const MyClass& myObj)
-
-DIFF
-
+ raw = <<~DIFF
+ --- test.orig.txt Wed Feb 15 16:10:39 2012
+ +++ test.new.txt Wed Feb 15 16:11:25 2012
+ @@ -1,5 +1,5 @@
+ Semicolons were mysteriously appearing in code diffs in the repository
+
+ -void DoSomething(std::auto_ptr<MyClass> myObj)
+ +void DoSomething(const MyClass& myObj)
+
+ DIFF
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs')
assert_equal 1, diff.size
assert_equal 'void DoSomething(<span>std::auto_ptr&lt;MyClass&gt;</span> myObj)', diff.first[2].html_line_left