Skip to content
Beth Skurrie edited this page Jul 28, 2015 · 14 revisions

With Capybara

Configure your Rack application to be started by Pact, and tell it what port to run on.

Pact.service_consumer "My Consumer" do
  app your_rack_app
  port 8001
  has_pact_with "My Provider" do
    ...
  end
end

With Minitest

Use pact-consumer-minitest.

Clone this wiki locally