mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ignore the extension of miniruby on Windows in the -I spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ebb6973842
commit
aaac5df365
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ describe "The -I command line option" do
|
|||
|
||||
it "adds the path at the front of $LOAD_PATH" do
|
||||
lines = ruby_exe(@script, options: "-I fixtures").lines
|
||||
if File.basename(ruby_exe[0]) == "miniruby"
|
||||
if File.basename(ruby_exe[0], ".*") == "miniruby"
|
||||
# In a MRI checkout, $PWD ends up as the first entry in $LOAD_PATH.
|
||||
# So just assert that it's at the beginning.
|
||||
idx = lines.index { |l| l.include?("fixtures") }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue