Skip to content

Commit 1e217c2

Browse files
committed
[test] Remove Ruby < 1.9 backward compatibility logic
1 parent e0bfc1a commit 1e217c2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

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

0 commit comments

Comments
 (0)