summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-10-24 06:46:50 +0000
committerGo MAEDA <maeda@farend.jp>2020-10-24 06:46:50 +0000
commit78dfef097803532fee664461f6485175917c1990 (patch)
tree9442d8a37c382e347c1928c250b1d939b8ae6ee6 /test/unit/repository_cvs_test.rb
parentb46953247da61845d7cd4600435c21012409aafb (diff)
downloadredmine-78dfef097803532fee664461f6485175917c1990.tar.gz
redmine-78dfef097803532fee664461f6485175917c1990.zip
Replace gsub with tr, delete, or squeeze (#34161).
git-svn-id: http://svn.redmine.org/redmine/trunk@20176 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index c3c592e68..2eafa8395 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -25,7 +25,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
include Redmine::I18n
REPOSITORY_PATH = repository_path('cvs')
- REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
+ REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
# CVS module
MODULE_NAME = 'test'
CHANGESETS_NUM = 7