ruby-changes:51088
From: eregon <ko1@a...>
Date: Sun, 29 Apr 2018 05:37:25 +0900 (JST)
Subject: [ruby-changes:51088] eregon:r63295 (trunk): Ignore the extension of miniruby on Windows in the -I spec
eregon 2018-04-29 05:37:20 +0900 (Sun, 29 Apr 2018) New Revision: 63295 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63295 Log: Ignore the extension of miniruby on Windows in the -I spec 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 63294) +++ spec/ruby/command_line/dash_upper_i_spec.rb (revision 63295) @@ -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 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") } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/