diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-04 06:24:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-04 06:24:04 +0000 |
commit | 0866b8e83af0cef810599d10654edca7a8779875 (patch) | |
tree | 9f85c38f2a9b5b48173793b89d52a63208942964 /test/ruby/test_require.rb | |
parent | 7c8a060b8521bf071b2340f7f7b2e7b482b693cd (diff) | |
download | ruby-0866b8e83af0cef810599d10654edca7a8779875.tar.gz |
test_require.rb: fix expected path
* test/ruby/test_require.rb (test_require_with_unc): remove extra
slash. the result of File.expand_path has a slash just follows
the drive letter.
https://github.com/ruby/ruby/commit/4ef849bd9014746821402e21053a53ea61b3690d#commitcomment-22391133
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r-- | test/ruby/test_require.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 666f2fcd82..1bed6c4f64 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -226,7 +226,7 @@ class TestRequire < Test::Unit::TestCase t.puts "puts __FILE__" t.close - path = File.expand_path(t.path).sub(/\A(\w):/, '//127.0.0.1/\1$/') + path = File.expand_path(t.path).sub(/\A(\w):/, '//127.0.0.1/\1$') skip "local drive #$1: is not shared" unless File.exist?(path) args = ['--disable-gems', "-I#{File.dirname(path)}"] assert_in_out_err(args, "#{<<~"END;"}", [path], []) |