spec/support/vcr_localhost_server.rb in vcr-1.9.0 vs spec/support/vcr_localhost_server.rb in vcr-1.10.0

- old
+ new

@@ -11,11 +11,11 @@ @app = app end def call(env) if env["PATH_INFO"] == "/__identify__" - [200, {}, @app.object_id.to_s] + [200, {}, [@app.object_id.to_s]] else @app.call(env) end end end @@ -38,10 +38,12 @@ server.close if server end def boot # Use WEBrick since it's part of the ruby standard library and is available on all ruby interpreters. - Rack::Handler::WEBrick.run(Identify.new(@rack_app), :Port => port, :AccessLog => [], :Logger => WEBrick::BasicLog.new(StringIO.new)) + options = { :Port => port } + options.merge!(:AccessLog => [], :Logger => WEBrick::BasicLog.new(StringIO.new)) unless ENV['CI'] + Rack::Handler::WEBrick.run(Identify.new(@rack_app), options) end def booted? res = ::Net::HTTP.get_response("localhost", '/__identify__', port)