summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:14:27 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 15:14:27 +0000
commitc56c9d3c19f8f9b4a50d5db8a3b22ebb6f81a831 (patch)
tree433abe1214947d60e10a72eae6977ac9482cb98f /test/unit
parentafbd2353c1055ee3d8343d03db3efde95937b4f3 (diff)
downloadredmine-c56c9d3c19f8f9b4a50d5db8a3b22ebb6f81a831.tar.gz
redmine-c56c9d3c19f8f9b4a50d5db8a3b22ebb6f81a831.zip
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_offset_range_ascii_1
git-svn-id: http://svn.redmine.org/redmine/trunk@18969 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/unified_diff_test.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb
index 723418bc9..94bdd4c63 100644
--- a/test/unit/lib/redmine/unified_diff_test.rb
+++ b/test/unit/lib/redmine/unified_diff_test.rb
@@ -292,15 +292,15 @@ DIFF
end
def test_offset_range_ascii_1
- raw = <<-DIFF
---- a.txt 2013-04-05 14:19:39.000000000 +0900
-+++ b.txt 2013-04-05 14:19:51.000000000 +0900
-@@ -1,3 +1,3 @@
- aaaa
--abc
-+abcd
- bbbb
-DIFF
+ raw = <<~DIFF
+ --- a.txt 2013-04-05 14:19:39.000000000 +0900
+ +++ b.txt 2013-04-05 14:19:51.000000000 +0900
+ @@ -1,3 +1,3 @@
+ aaaa
+ -abc
+ +abcd
+ bbbb
+ DIFF
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs')
assert_equal 1, diff.size
assert_equal 3, diff.first.size