ruby-changes:46897
From: nobu <ko1@a...>
Date: Sun, 4 Jun 2017 15:24:09 +0900 (JST)
Subject: [ruby-changes:46897] nobu:r59012 (trunk): test_require.rb: fix expected path
nobu 2017-06-04 15:24:04 +0900 (Sun, 04 Jun 2017) New Revision: 59012 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59012 Log: 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 Modified files: trunk/test/ruby/test_require.rb Index: test/ruby/test_require.rb =================================================================== --- test/ruby/test_require.rb (revision 59011) +++ test/ruby/test_require.rb (revision 59012) @@ -226,7 +226,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L226 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], []) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/