summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:15:23 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:15:23 +0000
commit2c020e132a035114f84fcaa4e3fbe56e85bdc3a3 (patch)
tree49d1d92de4d848cf7be35903e7110bc7969fb477
parent41f1922d23bb2ac3d43b80f2b1fa036a6fbdf820 (diff)
downloadredmine-2c020e132a035114f84fcaa4e3fbe56e85bdc3a3.tar.gz
redmine-2c020e132a035114f84fcaa4e3fbe56e85bdc3a3.zip
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_line_starting_with_dashes
git-svn-id: http://svn.redmine.org/redmine/trunk@18974 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/lib/redmine/unified_diff_test.rb31
1 files changed, 15 insertions, 16 deletions
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb
index eef6496cb..c312a013e 100644
--- a/test/unit/lib/redmine/unified_diff_test.rb
+++ b/test/unit/lib/redmine/unified_diff_test.rb
@@ -113,28 +113,27 @@ DIFF
end
def test_line_starting_with_dashes
- diff = Redmine::UnifiedDiff.new(<<-DIFF
---- old.txt Wed Nov 11 14:24:58 2009
-+++ new.txt Wed Nov 11 14:25:02 2009
-@@ -1,8 +1,4 @@
--Lines that starts with dashes:
--
--------------------------
---- file.c
--------------------------
-+A line that starts with dashes:
+ diff = Redmine::UnifiedDiff.new(<<~DIFF)
+ --- old.txt Wed Nov 11 14:24:58 2009
+ +++ new.txt Wed Nov 11 14:25:02 2009
+ @@ -1,8 +1,4 @@
+ -Lines that starts with dashes:
+ -
+ -------------------------
+ --- file.c
+ -------------------------
+ +A line that starts with dashes:
- and removed.
+ and removed.
-@@ -23,4 +19,4 @@
+ @@ -23,4 +19,4 @@
--Another chunk of change
-+Another chunk of changes
+ -Another chunk of change
+ +Another chunk of changes
-DIFF
- )
+ DIFF
assert_equal 1, diff.size
end