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