diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:14:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:14:59 +0000 |
commit | f99c88f3cd9ddc9065f757e1bee90fb739facbdf (patch) | |
tree | 51dad0bf7c2da9385aea2c1ca1a98dc328850b59 /test/unit | |
parent | 9e52eba4bc88af7c6341117a259c2c100bd125a6 (diff) | |
download | redmine-f99c88f3cd9ddc9065f757e1bee90fb739facbdf.tar.gz redmine-f99c88f3cd9ddc9065f757e1bee90fb739facbdf.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/unified_diff_test.rb | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb index ee46f336e..c49c7bbc5 100644 --- a/test/unit/lib/redmine/unified_diff_test.rb +++ b/test/unit/lib/redmine/unified_diff_test.rb @@ -240,33 +240,30 @@ DIFF end def test_include_a_b_slash - diff = Redmine::UnifiedDiff.new(<<-DIFF ---- test1.txt -+++ b/test02.txt -@@ -1 +0,0 @@ --modify test1 -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 ---- a/test1.txt -+++ a/test02.txt -@@ -1 +0,0 @@ --modify test1 -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 ---- a/test1.txt -+++ test02.txt -@@ -1 +0,0 @@ --modify test1 -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 |