:new_episodes
The :new_episodes
record mode will:
Record new interactions.
Replay previously recorded interactions.
It is similar to the
:once
record mode, but will always record new interactions, even if you have an existing recorded one that is similar (but not identical, based on the:match_request_on
option).
Background ()
Given a file named "setup.rb" with:
And a previously recorded cassette file "cassettes/example.yml" with:
Previously recorded responses are replayed
Given a file named "replay_recorded_response.rb" with:
When I run ruby replay_recorded_response.rb
Then it should pass with "Response: example.com response".
New requests get recorded
Given a file named "record_new_requests.rb" with:
When I run ruby record_new_requests.rb
Then it should pass with "Response: Hello"
And the file "cassettes/example.yml" should contain each of these:
| example.com response | | Hello |
Last updated