]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense "Lint/Syntax: invalid escape character syntax" (#38585).
authorGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 05:43:11 +0000 (05:43 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 27 Jan 2024 05:43:11 +0000 (05:43 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22650 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/unified_diff_test.rb

index 15eff8b44b7cb62763c087bce737964f4b701749..87e9d072f2e7c190a9968aecd2ab81907dfbf729 100644 (file)
@@ -385,7 +385,7 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
   end
 
   def test_keep_similar_git_footer_line
-    raw = <<~DIFF
+    raw = <<~'DIFF'
       diff --git a/test1.txt b/test1.txt
       --- a/test1.txt
       +++ b/test1.txt
@@ -425,7 +425,7 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
   end
 
   def test_git_footer_line
-    raw = <<~DIFF
+    raw = <<~'DIFF'
       From 1ed13eda266a3e0a5a8624e79ae28874ebcdeb5c Mon Sep 17 00:00:00 2001
       From: test <none@none>
       Date: Thu, 30 Apr 2020 11:40:20 +0900