Sha256: 7525a08e22d345f73b91f2d1af8a722fc6d8c6714fe05401cd9d5dfcb6afec33

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

require 'simplecov'
SimpleCov.start

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

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

require 'db'
require 'tasks/database'
require 'pact_broker/db'
raise "Wrong environment!!! Don't run this script!! ENV['RACK_ENV'] is #{ENV['RACK_ENV']} and RACK_ENV is #{RACK_ENV}" if ENV['RACK_ENV'] != 'test' || RACK_ENV != 'test'
PactBroker::DB.connection = PactBroker::Database.database = DB::PACT_BROKER_DB

require 'rack/test'
require 'pact_broker/api'
require 'rspec/its'

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

I18n.config.enforce_available_locales = false

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

  config.include Rack::Test::Methods

  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

13 entries across 13 versions & 1 rubygems

Version Path
pact_broker-2.12.0 spec/spec_helper.rb
pact_broker-2.11.0 spec/spec_helper.rb
pact_broker-2.10.0 spec/spec_helper.rb
pact_broker-2.9.0 spec/spec_helper.rb
pact_broker-2.9.0.beta.5 spec/spec_helper.rb
pact_broker-2.8.0.beta.5 spec/spec_helper.rb
pact_broker-2.8.0.beta.4 spec/spec_helper.rb
pact_broker-2.7.0.beta.3 spec/spec_helper.rb
pact_broker-2.7.0.beta.2 spec/spec_helper.rb
pact_broker-2.7.0.beta.1 spec/spec_helper.rb
pact_broker-2.6.0 spec/spec_helper.rb
pact_broker-2.5.1 spec/spec_helper.rb
pact_broker-2.5.0 spec/spec_helper.rb