as-redactor | Wrap a redacting expression as a proper function |
build_mock_url | Convert a request to a mock file path |
capture_requests | Record API responses as mock files |
change_state | Handle a change of server state |
expect_request_header | Test that an HTTP request is made with a header |
expect_verb | Expectations for mocked HTTP requests |
find_mock_file | Go through mock paths to find the local mock file location |
get_current_redactor | Fetch the active redacting function |
gsub_response | Find and replace within a response object |
httptest2 | 'httptest2': A Test Environment for HTTP Requests |
mockPaths | Set an alternate directory for mock API fixtures |
redact | Remove sensitive content from HTTP responses |
save_response | Write out a captured response |
set_redactor | Set a response redactor |
start_vignette | Set mocking/capturing state for a vignette |
use_httptest2 | Use 'httptest2' in your tests |
with_mock_api | Serve a mock API from files |
with_mock_dir | Use or create mock files depending on their existence |
without_internet | Make all HTTP requests raise an error |
with_trace | Wrapper around 'trace' to untrace when finished |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.