We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2295ce commit 3120eebCopy full SHA for 3120eeb
src/spec/ruby/jruby/rack/booter_spec.rb
@@ -243,7 +243,7 @@
243
load_path = $LOAD_PATH.dup
244
begin # emulating a "bare" load path :
245
$LOAD_PATH.clear
246
- $LOAD_PATH << "#{tmpdir}/lib/ruby/2.2/site_ruby"
+ $LOAD_PATH << "#{tmpdir}/lib/ruby/#{RUBY_VERSION[0..2]}/site_ruby"
247
$LOAD_PATH << "#{tmpdir}/lib/ruby/stdlib"
248
# "stub" runtime.jruby_home :
249
JRuby.runtime.instance_config.setJRubyHome(tmpdir)
@@ -252,7 +252,7 @@
252
booter.boot!
253
254
expected = []
255
- expected << "classpath:/META-INF/jruby.home/lib/ruby/2.2/site_ruby"
+ expected << "classpath:/META-INF/jruby.home/lib/ruby/#{RUBY_VERSION[0..2]}/site_ruby"
256
expected << "classpath:/META-INF/jruby.home/lib/ruby/stdlib"
257
258
$LOAD_PATH.should == expected
0 commit comments