.mockPaths |
Set an alternate directory for mock API fixtures |
block_requests |
Make all HTTP requests raise an error |
capture_requests |
Record API responses as mock files |
change_state |
Handle a change of server state |
end_vignette |
Set mocking/capturing state for a vignette |
expect_DELETE |
Expectations for mocked HTTP requests |
expect_GET |
Expectations for mocked HTTP requests |
expect_no_request |
Expectations for mocked HTTP requests |
expect_PATCH |
Expectations for mocked HTTP requests |
expect_POST |
Expectations for mocked HTTP requests |
expect_PUT |
Expectations for mocked HTTP requests |
expect_request_header |
Test that an HTTP request is made with a header |
expect_verb |
Expectations for mocked HTTP requests |
gsub_response |
Find and replace within a response object |
redact |
Remove sensitive content from HTTP responses |
redact_cookies |
Remove sensitive content from HTTP responses |
redact_headers |
Remove sensitive content from HTTP responses |
set_redactor |
Set a response redactor |
start_capturing |
Record API responses as mock files |
start_vignette |
Set mocking/capturing state for a vignette |
stop_capturing |
Record API responses as mock files |
stop_mocking |
Serve a mock API from files |
use_httptest2 |
Use 'httptest2' in your tests |
use_mock_api |
Serve a mock API from files |
within_body_text |
Remove sensitive content from HTTP responses |
without_internet |
Make all HTTP requests raise an error |
with_mock_api |
Serve a mock API from files |
with_mock_dir |
Use or create mock files depending on their existence |