Sha256: 988a68ab70134c302bb218f6e75dd697860998e6e1f2a975613ee6622d9bbf4a

Contents?: true

Size: 1018 Bytes

Versions: 45

Compression:

Stored size: 1018 Bytes

Contents

require 'webmock/rspec'

WebMock.disable_net_connect!(allow_localhost: true)

require "./spec/support/shared_context.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

45 entries across 45 versions & 1 rubygems

Version Path
pact_broker-client-1.37.1 spec/spec_helper.rb
pact_broker-client-1.37.0 spec/spec_helper.rb
pact_broker-client-1.36.0 spec/spec_helper.rb
pact_broker-client-1.35.0 spec/spec_helper.rb
pact_broker-client-1.34.0 spec/spec_helper.rb
pact_broker-client-1.33.0 spec/spec_helper.rb
pact_broker-client-1.32.0 spec/spec_helper.rb
pact_broker-client-1.31.0 spec/spec_helper.rb
pact_broker-client-1.30.0 spec/spec_helper.rb
pact_broker-client-1.29.1 spec/spec_helper.rb
pact_broker-client-1.29.0 spec/spec_helper.rb
pact_broker-client-1.28.4 spec/spec_helper.rb
pact_broker-client-1.28.3 spec/spec_helper.rb
pact_broker-client-1.28.2 spec/spec_helper.rb
pact_broker-client-1.28.1 spec/spec_helper.rb
pact_broker-client-1.28.0 spec/spec_helper.rb
pact_broker-client-1.27.28 spec/spec_helper.rb
pact_broker-client-1.27.27 spec/spec_helper.rb
pact_broker-client-1.27.26 spec/spec_helper.rb
pact_broker-client-1.27.25 spec/spec_helper.rb