mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_include_a_b_slash
git-svn-id: http://svn.redmine.org/redmine/trunk@18972 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -240,33 +240,30 @@ DIFF
|
||||
end
|
||||
|
||||
def test_include_a_b_slash
|
||||
diff = Redmine::UnifiedDiff.new(<<-DIFF
|
||||
diff = Redmine::UnifiedDiff.new(<<~DIFF)
|
||||
--- test1.txt
|
||||
+++ b/test02.txt
|
||||
@@ -1 +0,0 @@
|
||||
-modify test1
|
||||
DIFF
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal "b/test02.txt", diff[0].file_name
|
||||
|
||||
diff = Redmine::UnifiedDiff.new(<<-DIFF
|
||||
diff = Redmine::UnifiedDiff.new(<<~DIFF)
|
||||
--- a/test1.txt
|
||||
+++ a/test02.txt
|
||||
@@ -1 +0,0 @@
|
||||
-modify test1
|
||||
DIFF
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal "a/test02.txt", diff[0].file_name
|
||||
|
||||
diff = Redmine::UnifiedDiff.new(<<-DIFF
|
||||
diff = Redmine::UnifiedDiff.new(<<~DIFF)
|
||||
--- a/test1.txt
|
||||
+++ test02.txt
|
||||
@@ -1 +0,0 @@
|
||||
-modify test1
|
||||
DIFF
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal "test02.txt", diff[0].file_name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user