mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
4ef849bd90 (commitcomment-22391133)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7c8a060b85
commit
0866b8e83a
1 changed files with 1 additions and 1 deletions
|
@ -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], [])
|
||||
|
|
Loading…
Add table
Reference in a new issue