summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-09-01 00:38:01 +0000
committerGo MAEDA <maeda@farend.jp>2024-09-01 00:38:01 +0000
commit2fe36c41281252c5fb63ead8ec239c737a88468b (patch)
tree6ff46d0c1d4291d2d75fdd721694eb263747f398 /test
parent8da72cb712dce17d6537cf71ab90b6d1959e37a1 (diff)
downloadredmine-2fe36c41281252c5fb63ead8ec239c737a88468b.tar.gz
redmine-2fe36c41281252c5fb63ead8ec239c737a88468b.zip
Fix RuboCop offense Style/RedundantInterpolationUnfreeze (#39887).
Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant. git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 520786f2f..63aa43d35 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -310,7 +310,7 @@ class RepositoryTest < ActiveSupport::TestCase
)
long_whitespace = " "
expected_comment = "This is a loooooooooooooooooooooooooooong comment"
- comment = +"#{expected_comment}#{long_whitespace}\n"
+ comment = "#{expected_comment}#{long_whitespace}\n"
3.times {comment << "#{long_whitespace}\n"}
changeset = Changeset.new(
:comments => comment, :commit_date => Time.now,