Sha256: a34a6e0c0b91a4d30a4e6902d181575652f0019955040e973f0d85ae60acc8c9
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
require 'webmock/rspec' require 'rspec/its' ENV['PACT_BROKER_FEATURES'] = 'deployments publish_contracts ignore' WebMock.disable_net_connect!(allow_localhost: true) require "./spec/support/shared_context.rb" require "./spec/support/approvals.rb" is_windows = (RbConfig::CONFIG['host_os'] =~ /bccwin|cygwin|djgpp|mingw|mswin|wince/i) != nil is_ci = ENV['CI'] == 'true' RSpec.configure do | config | config.before(:each) do ENV.delete('PACT_BROKER_BASE_URL') ENV.delete('PACT_BROKER_USERNAME') ENV.delete('PACT_BROKER_PASSWORD') end config.after(:all) do Pact::Fixture.check_fixtures end config.filter_run_excluding skip_windows: is_windows, skip_ci: is_ci config.example_status_persistence_file_path = "./spec/examples.txt" end module Pact module Fixture def self.add_fixture key, value fixtures[key] ||= [] fixtures[key] << value end def self.fixtures @fixtures ||= {} end def self.check_fixtures fixtures.each do | fixture_group | if fixture_group.size > 1 #TODO compare fixtures to ensure they match end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-client-1.43.0 | spec/spec_helper.rb |
pact_broker-client-1.42.0 | spec/spec_helper.rb |