Skip to content

Commit abe79d0

Browse files
committed
[spec] seems LoadError is not being rescued when using base Gemfile
1 parent 3120eeb commit abe79d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spec/ruby/rack/application_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def newRuntime() # use the current runtime instead of creating new
339339
gem_install_rack_unless_installed '1.3.10'
340340
set_config 'jruby.runtime.env', 'false'
341341

342-
script = "" +
342+
script = ''.dup +
343343
"# rack.version: ~>1.3.6\n" +
344344
"Proc.new { 'proc-rack-app' }"
345345
app_factory.setRackupScript script
@@ -386,7 +386,7 @@ def gem_install_rack_unless_installed(version)
386386
else
387387
raise Gem::LoadError unless Gem.available? 'rack', version
388388
end
389-
rescue Gem::LoadError
389+
rescue ::LoadError # Gem::LoadError
390390
require 'rubygems/dependency_installer'
391391
installer = Gem::DependencyInstaller.new
392392
installer.install 'rack', version

0 commit comments

Comments
 (0)