Sha256: 22500cf4a607c182c311013f1666c66d3e697f8dc5cf934e7b66c6c7645f369f
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
ENV['RACK_ENV'] = 'test' RACK_ENV = 'test' $: << File.expand_path("../../", __FILE__) require 'rack/test' require 'db' require 'pact_broker/api' require 'tasks/database' 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 = PactBroker::Database.database = DB::PACT_BROKER_DB end config.before :each do PactBroker.reset_configuration 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.1.1 | spec/spec_helper.rb |
pact_broker-2.1.0 | spec/spec_helper.rb |
pact_broker-2.0.5 | spec/spec_helper.rb |
pact_broker-2.0.4 | spec/spec_helper.rb |