diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:14:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:14:49 +0000 |
commit | 9e52eba4bc88af7c6341117a259c2c100bd125a6 (patch) | |
tree | 065857575fc1c2e48836dcfb9381042ee8dc9294 /test/unit | |
parent | e019d9d6a11575a42b2342ba374ece8edaff1275 (diff) | |
download | redmine-9e52eba4bc88af7c6341117a259c2c100bd125a6.tar.gz redmine-9e52eba4bc88af7c6341117a259c2c100bd125a6.zip |
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_both_git_diff
git-svn-id: http://svn.redmine.org/redmine/trunk@18971 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/unified_diff_test.rb | 31 |
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 df335de32..ee46f336e 100644 --- a/test/unit/lib/redmine/unified_diff_test.rb +++ b/test/unit/lib/redmine/unified_diff_test.rb @@ -171,22 +171,21 @@ DIFF end def test_both_git_diff - diff = Redmine::UnifiedDiff.new(<<-DIFF -# HG changeset patch -# User test -# Date 1348014182 -32400 -# Node ID d1c871b8ef113df7f1c56d41e6e3bfbaff976e1f -# Parent 180b6605936cdc7909c5f08b59746ec1a7c99b3e -modify test1.txt - -diff -r 180b6605936c -r d1c871b8ef11 test1.txt ---- a/test1.txt -+++ b/test1.txt -@@ -1,1 +1,1 @@ --test1 -+modify test1 -DIFF - ) + diff = Redmine::UnifiedDiff.new(<<~DIFF) + # HG changeset patch + # User test + # Date 1348014182 -32400 + # Node ID d1c871b8ef113df7f1c56d41e6e3bfbaff976e1f + # Parent 180b6605936cdc7909c5f08b59746ec1a7c99b3e + modify test1.txt + + diff -r 180b6605936c -r d1c871b8ef11 test1.txt + --- a/test1.txt + +++ b/test1.txt + @@ -1,1 +1,1 @@ + -test1 + +modify test1 + DIFF assert_equal 1, diff.size assert_equal "test1.txt", diff[0].file_name end |