Sha256: 8bb8cfb8a731d32143956289e8a73ed9010bd8c0413dda901d9bd3bcaca18d41

Contents?: true

Size: 684 Bytes

Versions: 16

Compression:

Stored size: 684 Bytes

Contents

require 'pact/consumer'
require 'pact/consumer/spec_hooks'
require 'pact/rspec'

module Pact
  module Consumer
    module RSpec
      include Pact::Consumer::ConsumerContractBuilders
    end
  end
end

hooks = Pact::Consumer::SpecHooks.new

RSpec.configure do |config|
  config.include Pact::Consumer::RSpec, :pact => true

  config.before :all, :pact => true do
    hooks.before_all
  end

  config.before :each, :pact => true do | example |
    hooks.before_each Pact::RSpec.full_description(example)
  end

  config.after :each, :pact => true do | example |
    hooks.after_each Pact::RSpec.full_description(example)
  end

  config.after :suite do
    hooks.after_suite
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pact-1.8.1 lib/pact/consumer/rspec.rb
pact-1.8.0 lib/pact/consumer/rspec.rb
pact-1.7.0 lib/pact/consumer/rspec.rb
pact-1.6.0 lib/pact/consumer/rspec.rb
pact-1.5.0 lib/pact/consumer/rspec.rb
pact-1.4.0 lib/pact/consumer/rspec.rb
pact-1.4.0.rc4 lib/pact/consumer/rspec.rb
pact-1.4.0.rc3 lib/pact/consumer/rspec.rb
pact-1.4.0.rc2 lib/pact/consumer/rspec.rb
pact-1.3.3 lib/pact/consumer/rspec.rb
pact-1.3.2 lib/pact/consumer/rspec.rb
pact-1.3.1 lib/pact/consumer/rspec.rb
pact-1.3.0 lib/pact/consumer/rspec.rb
pact-1.2.1.rc2 lib/pact/consumer/rspec.rb
pact-1.2.1.rc1 lib/pact/consumer/rspec.rb
pact-1.1.1 lib/pact/consumer/rspec.rb