Closed m-resende closed 3 months ago
For future reference, you need to add this to your pact_helper.rb
:
Pact.configure do |config|
config.include RSpec::Mocks::ExampleMethods
end
Actually, I'm still getting the same error even after adding the Rspec::Mock::ExampleMethods
would anyone know more about it?
I'm trying to stub a method call that creates the user and authenticates them. If there's another solution, I'd be happy to try
I think something in RSpec has changed since I wrote that example. I'm not sure if we'll be able to work around it or not, but I'll have a little dig for you, just in case. Would you please follow these instructions to get a reproduction of your issue for me in code. https://github.com/pact-foundation/pact-ruby-e2e-example
If anyone is still having this issue, please create a reproducible example!
Thank you
Hello!
I'm trying to stub a method call when verifying contracts, but I'm currently getting the following error:
The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported
I have the provider setup like this:
My pact_helper.rb:
I found this example while looking for testing error responses
Do I need to configure something else in order for this to work?