mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
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
This commit is contained in:
@@ -90,17 +90,16 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_partials_with_html_entities
|
def test_partials_with_html_entities
|
||||||
raw = <<-DIFF
|
raw = <<~DIFF
|
||||||
--- test.orig.txt Wed Feb 15 16:10:39 2012
|
--- test.orig.txt Wed Feb 15 16:10:39 2012
|
||||||
+++ test.new.txt Wed Feb 15 16:11:25 2012
|
+++ test.new.txt Wed Feb 15 16:11:25 2012
|
||||||
@@ -1,5 +1,5 @@
|
@@ -1,5 +1,5 @@
|
||||||
Semicolons were mysteriously appearing in code diffs in the repository
|
Semicolons were mysteriously appearing in code diffs in the repository
|
||||||
|
|
||||||
-void DoSomething(std::auto_ptr<MyClass> myObj)
|
-void DoSomething(std::auto_ptr<MyClass> myObj)
|
||||||
+void DoSomething(const MyClass& myObj)
|
+void DoSomething(const MyClass& myObj)
|
||||||
|
|
||||||
DIFF
|
|
||||||
|
|
||||||
|
DIFF
|
||||||
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs')
|
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs')
|
||||||
assert_equal 1, diff.size
|
assert_equal 1, diff.size
|
||||||
assert_equal 'void DoSomething(<span>std::auto_ptr<MyClass></span> myObj)', diff.first[2].html_line_left
|
assert_equal 'void DoSomething(<span>std::auto_ptr<MyClass></span> myObj)', diff.first[2].html_line_left
|
||||||
|
|||||||
Reference in New Issue
Block a user