-
Notifications
You must be signed in to change notification settings - Fork 108
Creating mocks
Lazarus Lazaridis edited this page Nov 16, 2017
·
5 revisions
With DuckRails you can defined either static or dynamic mocks.
Mocks that always respond with the same body and headers.
Mocks whose body and headers can dynamically change. This can be achieved by using either Embedded Ruby or Javascript as the mock's response body type. The script will be being evaluated on each request of the endpoint and respond accordingly.
- Create a simple static mock
- Create a dynamic mock with embedded ruby
- Create a dynamic mock with javascript
- [Create a mock that wraps and existing API endpoint]
- Create an advanced mock
- DuckRails - 2017 Wiki pages.
- Feel free to request for documentation that you believe is missing by opening issues with the label
wiki