diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 23:55:41 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 23:55:41 +0000 |
commit | f2b1cd9720ee7e07c406bd0a0b3a3d49f1aff715 (patch) | |
tree | bfda0eceba2d697f129091784bdc1160f235a833 /test/ruby | |
parent | 6fdba2e15e9f08fe982a2fff40e6f4ceaa17d838 (diff) | |
download | ruby-f2b1cd9720ee7e07c406bd0a0b3a3d49f1aff715.tar.gz |
Use tr! instead of gsub!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 93eecd28c4..c7d1bcdea4 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -453,7 +453,7 @@ class TestRubyOptions < Test::Unit::TestCase notexist = "./notexist.rb" dir, *rubybin = RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME', 'EXEEXT') rubybin = "#{dir}/#{rubybin.join('')}" - rubybin.gsub!(%r(/), '\\') if /mswin|mingw/ =~ RUBY_PLATFORM + rubybin.tr!('/', '\\') if /mswin|mingw/ =~ RUBY_PLATFORM rubybin = Regexp.quote(rubybin) pat = Regexp.quote(notexist) bug1573 = '[ruby-core:23717]' |