Sha256: 4a4bf4aaa164359d5f80562371c190b981b7a03678d0102c84775ec7f24ade83

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

$: << File.expand_path("../../", __FILE__)

RACK_ENV = ENV['RACK_ENV'] = 'test'

require 'simplecov'
SimpleCov.start

require 'support/logging'
require 'support/database'
require 'rack/test'
require 'pact_broker/api'
require 'rspec/its'
require 'rspec/pact/matchers'
require 'sucker_punch/testing/inline'
require 'webmock/rspec'

Dir.glob("./spec/support/**/*.rb") { |file| require file  }

WebMock.disable_net_connect!(allow_localhost: true)

I18n.config.enforce_available_locales = false

RSpec.configure do | config |
  config.before :each do
    PactBroker.reset_configuration
    PactBroker.configuration.base_equality_only_on_content_that_affects_verification_results = false
    require 'pact_broker/badges/service'
    PactBroker::Badges::Service.clear_cache
  end

  config.after :suite do
    Pact::Fixture.check_fixtures
  end

  config.include Rack::Test::Methods
  config.include Pact::Fixture

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.define_derived_metadata do |meta|
    meta[:aggregate_failures] = true unless meta.key?(:aggregate_failures)
  end

  config.include FixtureHelpers
  config.example_status_persistence_file_path = "./spec/examples.txt"

  def app
    PactBroker::API
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact_broker-2.27.6 spec/spec_helper.rb
pact_broker-2.27.5 spec/spec_helper.rb
pact_broker-2.27.4 spec/spec_helper.rb
pact_broker-2.27.3 spec/spec_helper.rb