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 e0bfc1a commit 1e217c2Copy full SHA for 1e217c2
src/spec/ruby/jruby/rack/booter_spec.rb
@@ -208,12 +208,7 @@
208
# at RUBY.change_working_directory(classpath:/jruby/rack/booter.rb:125)
209
# at RUBY.boot!(classpath:/jruby/rack/booter.rb:105)
210
# at RUBY.(root)(classpath:/jruby/rack/boot/rack.rb:10)
211
- if RUBY_VERSION > '1.9'
212
- app_dir = File.absolute_path Dir.pwd
213
- else
214
- app_dir = File.expand_path Dir.pwd
215
- end
216
- app_dir = "#{app_dir}/sample.war!/WEB-INF"
+ app_dir = "#{File.absolute_path Dir.pwd}/sample.war!/WEB-INF"
217
allow(File).to receive(:directory?).with(app_dir).and_return true
218
allow(booter).to receive(:layout).and_return layout = double('layout')
219
allow(layout).to receive(:app_path).and_return app_dir
0 commit comments