Sha256: badedff0d21b4086713ec97a539e357c76c33985a1240f48dab7892dab3e4cce

Contents?: true

Size: 1.5 KB

Versions: 13

Compression:

Stored size: 1.5 KB

Contents

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

RACK_ENV = ENV['RACK_ENV'] = 'test'
require 'spec/support/simplecov'

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'
require 'pact_broker/policies'

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.seed_example_data = false
    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.include_context "test data builder"
  config.example_status_persistence_file_path = "./spec/examples.txt"
  config.filter_run_excluding skip: true

  def app
    PactBroker::API
  end
end

if ENV["DEBUG"] == "true"
  SemanticLogger.add_appender(io: $stdout)
  SemanticLogger.default_level = :info
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pact_broker-2.66.0 spec/spec_helper.rb
pact_broker-2.65.0 spec/spec_helper.rb
pact_broker-2.64.0 spec/spec_helper.rb
pact_broker-2.63.0 spec/spec_helper.rb
pact_broker-2.62.0 spec/spec_helper.rb
pact_broker-2.61.0 spec/spec_helper.rb
pact_broker-2.60.1 spec/spec_helper.rb
pact_broker-2.60.0 spec/spec_helper.rb
pact_broker-2.59.2 spec/spec_helper.rb
pact_broker-2.59.1 spec/spec_helper.rb
pact_broker-2.59.0 spec/spec_helper.rb
pact_broker-2.58.3 spec/spec_helper.rb
pact_broker-2.58.2 spec/spec_helper.rb