Sha256: f9324315f469474b27b435e7fe23df2db109284d212ec16034370571462a9214

Contents?: true

Size: 661 Bytes

Versions: 3

Compression:

Stored size: 661 Bytes

Contents

require 'rspec'
require 'rack/test'
require 'webmock/rspec'
require 'timecop'
$LOAD_PATH.unshift("#{__dir__}/..", "#{__dir__}/support")
require 'async/middleware'

require 'support/shared_contexts'
require 'support/shared_examples'
require 'support/silent_warnings'

require 'support/patch/rack/response'

if ENV['coverage'] == 'true'
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'lib/sitehub'

RSpec.configure do |config|
  include Rack::Test::Methods

  config.before do
    Timecop.freeze
    WebMock.enable!
  end

  config.after do
    Timecop.return
  end

  config.after(:suite) do
    WebMock.disable!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/spec_helper.rb
sitehub-0.5.0.alpha11 spec/spec_helper.rb
sitehub-0.5.0.alpha10 spec/spec_helper.rb