Skip to content

Commit 3120eeb

Browse files
committed
[spec] adjust booter LOAD_PATH expectation to pass on JRuby 9.1
1 parent f2295ce commit 3120eeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spec/ruby/jruby/rack/booter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
load_path = $LOAD_PATH.dup
244244
begin # emulating a "bare" load path :
245245
$LOAD_PATH.clear
246-
$LOAD_PATH << "#{tmpdir}/lib/ruby/2.2/site_ruby"
246+
$LOAD_PATH << "#{tmpdir}/lib/ruby/#{RUBY_VERSION[0..2]}/site_ruby"
247247
$LOAD_PATH << "#{tmpdir}/lib/ruby/stdlib"
248248
# "stub" runtime.jruby_home :
249249
JRuby.runtime.instance_config.setJRubyHome(tmpdir)
@@ -252,7 +252,7 @@
252252
booter.boot!
253253

254254
expected = []
255-
expected << "classpath:/META-INF/jruby.home/lib/ruby/2.2/site_ruby"
255+
expected << "classpath:/META-INF/jruby.home/lib/ruby/#{RUBY_VERSION[0..2]}/site_ruby"
256256
expected << "classpath:/META-INF/jruby.home/lib/ruby/stdlib"
257257

258258
$LOAD_PATH.should == expected

0 commit comments

Comments
 (0)