summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line/rubylib_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/command_line/rubylib_spec.rb')
-rw-r--r--spec/ruby/command_line/rubylib_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/command_line/rubylib_spec.rb b/spec/ruby/command_line/rubylib_spec.rb
index 20e9c2cf95..b45919b997 100644
--- a/spec/ruby/command_line/rubylib_spec.rb
+++ b/spec/ruby/command_line/rubylib_spec.rb
@@ -30,6 +30,7 @@ describe "The RUBYLIB environment variable" do
dir = tmp("rubylib/incl_front")
ENV["RUBYLIB"] = @pre + dir
paths = ruby_exe("puts $LOAD_PATH").lines.map(&:chomp)
+ paths.shift if paths.first.end_with?('/gem-rehash')
if PlatformGuard.implementation? :ruby
# In a MRI checkout, $PWD and some extra -I entries end up as
# the first entries in $LOAD_PATH. So just assert that it's not last.