From 54701725198c004dfab8756e915796285689cd9d Mon Sep 17 00:00:00 2001 From: eregon Date: Sat, 28 Apr 2018 23:04:56 +0000 Subject: Generalize the check to MRI in the -I spec * The current check seems to fail with AppVeyor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/command_line/dash_upper_i_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/ruby/command_line/dash_upper_i_spec.rb b/spec/ruby/command_line/dash_upper_i_spec.rb index b0a7e80e66..b19f217688 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 PlatformGuard.implementation? :ruby # 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") } -- cgit v1.2.3