Sha256: 3f6cb8388f709ffd68a5ea2ffc4c5993571cf103f41f4efe4d79eab0aab98fe0
Contents?: true
Size: 783 Bytes
Versions: 5
Compression:
Stored size: 783 Bytes
Contents
require 'bundler' Bundler.require(:development) SimpleCov.start do coverage_dir "tmp/coverage" add_filter "/spec/" refuse_coverage_drop end if ENV["coverage"] require 'stringio' require_relative '../lib/http_event_logger' require_relative 'support/driver/base' Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |file| require file } # Server for test endpoints @server_thread = Thread.new { Rack::Handler::Thin.run(HttpEventLogger::Test::Server.new, Port: 9292) } sleep(1) # Wait for server RSpec.configure do |config| config.before(:example) do @log = StringIO.new @logger = ::Logger.new(@log) HttpEventLogger.configure { |config| config.logger = HttpEventLogger::Logger.new(logger: @logger) } end def log @log.string end end
Version data entries
5 entries across 5 versions & 1 rubygems