Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@azusa
Created February 24, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azusa/b9442d827d1831327ec60fbaa688e136 to your computer and use it in GitHub Desktop.
Save azusa/b9442d827d1831327ec60fbaa688e136 to your computer and use it in GitHub Desktop.
zoo_app-animal_service.json
{
"consumer": {
"name": "Zoo App"
},
"provider": {
"name": "Animal Service"
},
"interactions": [
{
"description": "a request for an alligator",
"provider_state": "an alligator exists",
"request": {
"method": "get",
"path": "/alligator",
"query": ""
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "Betty"
}
}
}
],
"metadata": {
"pactSpecificationVersion": "1.0.0"
}
}
@azusa
Copy link
Author

azusa commented Feb 24, 2017

bundle exec rspec spec/service_providers/animal_service_client_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment