Hey there! I'm having a problem with Pact ruby an...
# pact-ruby
t
Hey there! I'm having a problem with Pact ruby and provider verification. I've got a service that requires a date passed in the request body that is within next 30 days and can't find a good way to make it dynamic. Static JSON pactfile will obviously mean I would have to update the Pact every month which is not great. Since pact ruby flavour doesn't yet support v3 Pact spec, there's no generators or similar to help out here. Scouring through the code I've noticed https://github.com/pact-foundation/pact-ruby/commit/4ae0b5844aaaacf961af495df6a5d1a97c61f309 some
request_customizer
got added a good while back and in principle should let me achieve what I want to - i.e. dynamically modify the request body before running interaction. However I'm unable to see how I can tap into this/pass customizer as an option when running
bundle exec pact verify
- it's not a CLI recognised option. Any good ideas here?