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 3120eeb commit abe79d0Copy full SHA for abe79d0
src/spec/ruby/rack/application_spec.rb
@@ -339,7 +339,7 @@ def newRuntime() # use the current runtime instead of creating new
339
gem_install_rack_unless_installed '1.3.10'
340
set_config 'jruby.runtime.env', 'false'
341
342
- script = "" +
+ script = ''.dup +
343
"# rack.version: ~>1.3.6\n" +
344
"Proc.new { 'proc-rack-app' }"
345
app_factory.setRackupScript script
@@ -386,7 +386,7 @@ def gem_install_rack_unless_installed(version)
386
else
387
raise Gem::LoadError unless Gem.available? 'rack', version
388
end
389
- rescue Gem::LoadError
+ rescue ::LoadError # Gem::LoadError
390
require 'rubygems/dependency_installer'
391
installer = Gem::DependencyInstaller.new
392
installer.install 'rack', version
0 commit comments