Replace gsub with tr, delete, or squeeze (#34161).

git-svn-id: http://svn.redmine.org/redmine/trunk@20176 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-10-24 06:46:50 +00:00
parent b46953247d
commit 78dfef0978
15 changed files with 18 additions and 40 deletions

View File

@@ -21,7 +21,7 @@ require File.expand_path('../../../../../../test_helper', __FILE__)
class BazaarAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
REPOSITORY_PATH.gsub!(/\/+/, '/')
REPOSITORY_PATH.squeeze!('/')
if File.directory?(REPOSITORY_PATH)
def setup