cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_previous_file_name_with_git

git-svn-id: http://svn.redmine.org/redmine/trunk@18970 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-08 15:14:38 +00:00
parent c56c9d3c19
commit e019d9d6a1

View File

@@ -192,13 +192,13 @@ DIFF
end end
def test_previous_file_name_with_git def test_previous_file_name_with_git
diff = Redmine::UnifiedDiff.new(<<-DIFF) diff = Redmine::UnifiedDiff.new(<<~DIFF)
From 585da9683fb5ed7bf7cb438492e3347cdf3d83df Mon Sep 17 00:00:00 2001 From 585da9683fb5ed7bf7cb438492e3347cdf3d83df Mon Sep 17 00:00:00 2001
From: Gregor Schmidt <schmidt@nach-vorne.eu> From: Gregor Schmidt <schmidt@nach-vorne.eu>
Date: Mon, 5 Mar 2018 14:12:13 +0100 Date: Mon, 5 Mar 2018 14:12:13 +0100
Subject: [PATCH] changes including a rename, rename+modify and addition Subject: [PATCH] changes including a rename, rename+modify and addition
--- ---
one.markdown => one.md | 0 one.markdown => one.md | 0
three.md | 2 ++ three.md | 2 ++
two.markdown => two.md | 1 + two.markdown => two.md | 1 +
@@ -207,32 +207,31 @@ Subject: [PATCH] changes including a rename, rename+modify and addition
create mode 100644 three.md create mode 100644 three.md
rename two.markdown => two.md (50%) rename two.markdown => two.md (50%)
diff --git a/one.markdown b/one.md diff --git a/one.markdown b/one.md
similarity index 100% similarity index 100%
rename from one.markdown rename from one.markdown
rename to one.md rename to one.md
diff --git a/three.md b/three.md diff --git a/three.md b/three.md
new file mode 100644 new file mode 100644
index 0000000..288012f index 0000000..288012f
--- /dev/null --- /dev/null
+++ b/three.md +++ b/three.md
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
+three +three
+===== +=====
diff --git a/two.markdown b/two.md diff --git a/two.markdown b/two.md
similarity index 50% similarity index 50%
rename from two.markdown rename from two.markdown
rename to two.md rename to two.md
index f719efd..6a268ed 100644 index f719efd..6a268ed 100644
--- a/two.markdown --- a/two.markdown
+++ b/two.md +++ b/two.md
@@ -1 +1,2 @@ @@ -1 +1,2 @@
two two
+=== +===
-- --
2.14.1 2.14.1
DIFF DIFF
assert_equal 2, diff.size assert_equal 2, diff.size
assert_equal "three.md", diff[0].file_name assert_equal "three.md", diff[0].file_name
assert_nil diff[0].previous_file_name assert_nil diff[0].previous_file_name