We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74561e commit 2fe1782Copy full SHA for 2fe1782
1 file changed
src/spec/ruby/jruby/rack/booter_spec.rb
@@ -213,12 +213,7 @@
213
# at RUBY.change_working_directory(classpath:/jruby/rack/booter.rb:125)
214
# at RUBY.boot!(classpath:/jruby/rack/booter.rb:105)
215
# at RUBY.(root)(classpath:/jruby/rack/boot/rack.rb:10)
216
- if RUBY_VERSION > '1.9'
217
- app_dir = File.absolute_path Dir.pwd
218
- else
219
- app_dir = File.expand_path Dir.pwd
220
- end
221
- app_dir = "#{app_dir}/sample.war!/WEB-INF"
+ app_dir = "#{File.absolute_path Dir.pwd}/sample.war!/WEB-INF"
222
allow(File).to receive(:directory?).with(app_dir).and_return true
223
allow(booter).to receive(:layout).and_return layout = double('layout')
224
allow(layout).to receive(:app_path).and_return app_dir
0 commit comments