summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 20:37:20 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 20:37:20 +0000
commitaaac5df36550d950d91c9503c7ff71bd2dafe641 (patch)
treed810948a1c07c9a8e1a73bd86a15ff2f7d4a184e /spec/ruby/command_line
parentebb69738423607186ffae04eb7481ae0582f1718 (diff)
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
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_i_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/command_line/dash_upper_i_spec.rb b/spec/ruby/command_line/dash_upper_i_spec.rb
index 5d7109b6b65..b0a7e80e664 100644
--- a/spec/ruby/command_line/dash_upper_i_spec.rb
+++ b/spec/ruby/command_line/dash_upper_i_spec.rb
@@ -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") }