Follow the instructions in the README, this is the default behaviour.
Configuration of the pact creation
This code would typically go in the
pact_helper.rb, which would be required by the files that contain the RSpec Pact specs.
Configure your Rack application to be started by Pact, and tell it what port to run on.