Skip to content

Commit 2fe1782

Browse files
committed
[test] Remove Ruby < 1.9 backward compatibility logic
(cherry picked from commit 6cf3008)
1 parent b74561e commit 2fe1782

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,7 @@
213213
# at RUBY.change_working_directory(classpath:/jruby/rack/booter.rb:125)
214214
# at RUBY.boot!(classpath:/jruby/rack/booter.rb:105)
215215
# 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"
216+
app_dir = "#{File.absolute_path Dir.pwd}/sample.war!/WEB-INF"
222217
allow(File).to receive(:directory?).with(app_dir).and_return true
223218
allow(booter).to receive(:layout).and_return layout = double('layout')
224219
allow(layout).to receive(:app_path).and_return app_dir

0 commit comments

Comments
 (0)