Skip to content

Instantly share code, notes, and snippets.

@uglyog
Created May 16, 2014 01:15
Show Gist options
  • Save uglyog/de185aad1e028fd6c614 to your computer and use it in GitHub Desktop.
Save uglyog/de185aad1e028fd6c614 to your computer and use it in GitHub Desktop.
require 'pact/consumer/rspec' # Require the pact rspec helper
Pact.service_consumer "Source System" do # register a consumer with pact
has_pact_with "Event API" do # register the provider that has the pact
mock_service :event_api do # register the mock service that will run and pretend to be the provider
port 1234
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment