diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:15:11 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 15:15:11 +0000 |
commit | 41f1922d23bb2ac3d43b80f2b1fa036a6fbdf820 (patch) | |
tree | f5c97a32f767bda9ba38d51bd7cd99ad611895b1 /test/unit/lib/redmine/unified_diff_test.rb | |
parent | f99c88f3cd9ddc9065f757e1bee90fb739facbdf (diff) | |
download | redmine-41f1922d23bb2ac3d43b80f2b1fa036a6fbdf820.tar.gz redmine-41f1922d23bb2ac3d43b80f2b1fa036a6fbdf820.zip |
cleanup: rubocop: fix Layout/IndentHeredoc in Redmine::UnifiedDiffTest#test_one_line_new_files
git-svn-id: http://svn.redmine.org/redmine/trunk@18973 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/unified_diff_test.rb')
-rw-r--r-- | test/unit/lib/redmine/unified_diff_test.rb | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb index c49c7bbc5..eef6496cb 100644 --- a/test/unit/lib/redmine/unified_diff_test.rb +++ b/test/unit/lib/redmine/unified_diff_test.rb @@ -139,33 +139,32 @@ DIFF end def test_one_line_new_files - diff = Redmine::UnifiedDiff.new(<<-DIFF -diff -r 000000000000 -r ea98b14f75f0 README1 ---- /dev/null -+++ b/README1 -@@ -0,0 +1,1 @@ -+test1 -diff -r 000000000000 -r ea98b14f75f0 README2 ---- /dev/null -+++ b/README2 -@@ -0,0 +1,1 @@ -+test2 -diff -r 000000000000 -r ea98b14f75f0 README3 ---- /dev/null -+++ b/README3 -@@ -0,0 +1,3 @@ -+test4 -+test5 -+test6 -diff -r 000000000000 -r ea98b14f75f0 README4 ---- /dev/null -+++ b/README4 -@@ -0,0 +1,3 @@ -+test4 -+test5 -+test6 -DIFF - ) + diff = Redmine::UnifiedDiff.new(<<~DIFF) + diff -r 000000000000 -r ea98b14f75f0 README1 + --- /dev/null + +++ b/README1 + @@ -0,0 +1,1 @@ + +test1 + diff -r 000000000000 -r ea98b14f75f0 README2 + --- /dev/null + +++ b/README2 + @@ -0,0 +1,1 @@ + +test2 + diff -r 000000000000 -r ea98b14f75f0 README3 + --- /dev/null + +++ b/README3 + @@ -0,0 +1,3 @@ + +test4 + +test5 + +test6 + diff -r 000000000000 -r ea98b14f75f0 README4 + --- /dev/null + +++ b/README4 + @@ -0,0 +1,3 @@ + +test4 + +test5 + +test6 + DIFF assert_equal 4, diff.size assert_equal "README1", diff[0].file_name end |