diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 413d74c..151e88e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true ENV["RACK_ENV"] = ENV["APP_ENV"] = "test" -require "gem_server_conformance/server" require_relative "support/request_helpers" RSpec.configure do |config| diff --git a/spec/support/request_helpers.rb b/spec/support/request_helpers.rb index e486d30..7c1f34b 100644 --- a/spec/support/request_helpers.rb +++ b/spec/support/request_helpers.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "delegate" +require "forwardable" require "rubygems/gemcutter_utilities" module RequestHelpers diff --git a/spec/support/step_helpers.rb b/spec/support/step_helpers.rb index 3fe6ba5..7e028f0 100644 --- a/spec/support/step_helpers.rb +++ b/spec/support/step_helpers.rb @@ -136,6 +136,8 @@ def define! before(:all) do @upstream = ENV.fetch("UPSTREAM", nil) unless upstream + require "gem_server_conformance/server" + @upstream_output = Tempfile.create("upstream.out").path Bundler.with_original_env do @upstream = "http://localhost:4567"