Sha256: 4f237090dc7ecac9f9ca648442a65e49f35dd16c7dea6d860e7dadb6425c474f
Contents?: true
Size: 962 Bytes
Versions: 8
Compression:
Stored size: 962 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'httpclient' require 'excon' # require 'typhoeus' require 'ethon' require 'patron' require 'http' require 'simplecov' SimpleCov.start require 'httplog' require 'adapters/http_base_adapter' Dir[File.dirname(__FILE__) + '/adapters/*.rb'].each { |f| require f } Dir['./spec/support/**/*.rb'].each { |f| require f } # Start a local rack server to serve up test pages. @server_thread = Thread.new do Rack::Handler::Thin.run Httplog::Test::Server.new, Port: 9292 end sleep(3) # wait a moment for the server to be booted RSpec.configure do |config| config.before(:each) do require 'stringio' @log = StringIO.new @logger = Logger.new @log HttpLog.configure { |c| c.logger = @logger } end config.after(:each) do HttpLog.reset! end def log @log.string end end
Version data entries
8 entries across 8 versions & 1 rubygems