ruby-changes:51089
From: eregon <ko1@a...>
Date: Sun, 29 Apr 2018 08:05:02 +0900 (JST)
Subject: [ruby-changes:51089] eregon:r63296 (trunk): Generalize the check to MRI in the -I spec
eregon 2018-04-29 08:04:56 +0900 (Sun, 29 Apr 2018) New Revision: 63296 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63296 Log: Generalize the check to MRI in the -I spec * The current check seems to fail with AppVeyor. Modified files: trunk/spec/ruby/command_line/dash_upper_i_spec.rb Index: spec/ruby/command_line/dash_upper_i_spec.rb =================================================================== --- spec/ruby/command_line/dash_upper_i_spec.rb (revision 63295) +++ spec/ruby/command_line/dash_upper_i_spec.rb (revision 63296) @@ -11,7 +11,7 @@ describe "The -I command line option" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/dash_upper_i_spec.rb#L11 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") } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/