Sha256: 5a7206f828cd206286cdd2384e47b3f3c5cae858fa0e6747ab3411dff3115f15

Contents?: true

Size: 757 Bytes

Versions: 25

Compression:

Stored size: 757 Bytes

Contents

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

$: << File.expand_path("../../", __FILE__)
require 'rack/test'
require 'db'
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 :suite do
    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 = DB::PACT_BROKER_DB
  end

  config.include Rack::Test::Methods
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.include FixtureHelpers

  def app
    PactBroker::API
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pact_broker-2.0.0 spec/spec_helper.rb
pact_broker-2.0.0.beta.8 spec/spec_helper.rb
pact_broker-2.0.0.beta.7 spec/spec_helper.rb
pact_broker-2.0.0.beta.6 spec/spec_helper.rb
pact_broker-1.18.0 spec/spec_helper.rb
pact_broker-2.0.0.beta.5 spec/spec_helper.rb
pact_broker-1.18.0.beta.1 spec/spec_helper.rb
pact_broker-1.17.2 spec/spec_helper.rb
pact_broker-1.17.1 spec/spec_helper.rb
pact_broker-2.0.0.beta.4 spec/spec_helper.rb
pact_broker-2.0.0.beta.3 spec/spec_helper.rb
pact_broker-2.0.0.beta.2 spec/spec_helper.rb
pact_broker-2.0.0.beta.1 spec/spec_helper.rb
pact_broker-1.17.0 spec/spec_helper.rb
pact_broker-1.16.0 spec/spec_helper.rb
pact_broker-1.15.0 spec/spec_helper.rb
pact_broker-1.14.0 spec/spec_helper.rb
pact_broker-1.13.0 spec/spec_helper.rb
pact_broker-1.12.0 spec/spec_helper.rb
pact_broker-1.11.2 spec/spec_helper.rb