Skip to content

Commit 63980e3

Browse files
chrisseatoneregon
authored andcommitted
Fix $LOAD_PATH spec for rbenv
1 parent 04658f1 commit 63980e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

command_line/rubylib_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
dir = tmp("rubylib/incl_front")
3131
ENV["RUBYLIB"] = @pre + dir
3232
paths = ruby_exe("puts $LOAD_PATH").lines.map(&:chomp)
33+
paths.shift if paths.first.end_with?('/gem-rehash')
3334
if PlatformGuard.implementation? :ruby
3435
# In a MRI checkout, $PWD and some extra -I entries end up as
3536
# the first entries in $LOAD_PATH. So just assert that it's not last.

0 commit comments

Comments
 (0)