Closed jrmhaig closed 5 years ago
You need to configure your pact directory before you define your service consumer.
Thank you for the clarification. As I have the Pact.service_consumer
in a separate file it was being required at the top of test_helper.rb
before the configuration. I've rearranged things and it is all good now.
I am using Pact with Minitest and so I want to change the location where the contracts are created to
test/pacts
. The documentation states that I can do this with:However, I have found that this will create the directory
test/pacts
but then save the contracts inspec/pacts
anyway. I have a minimal example below:This produces:
The versions of the gems I am using are: