spec/support/stubbing_using_allow.rb in pact-1.0.36 vs spec/support/stubbing_using_allow.rb in pact-1.0.37

- old
+ new

@@ -10,19 +10,22 @@ def self.call env [200, {}, [StubbedThing.stub_me]] end end -Pact.configure do | config | - config.include RSpec::Mocks::ExampleMethods -end - Pact.provider_states_for 'Consumer' do provider_state 'something is stubbed' do set_up do allow(StubbedThing).to receive(:stub_me).and_return("stubbing works") end end +end + +# Include the ExampleMethods module after the provider states are declared +# to ensure the ordering doesn't matter + +Pact.configure do | config | + config.include RSpec::Mocks::ExampleMethods end Pact.service_provider 'Provider' do app { App } end \ No newline at end of file