How to not re-record VCR cassettes part 2
More ways to not re-record VCR cassettes when you test changes:
- Surgically modify the cassette YAML file to match the changes. Not ideal but works in a pinch.
- When the test includes a series of HTTP requests and only one changed: manually remove that one
request:
key from the cassette YAML file, change your cassette options torecord: :new_episodes
and re-run the test. It will only re-record the one you deleted. - If the problem stems from the sequence of HTTP requests changing, or from HTTP requests getting called multiple times try
allow_playback_repeats: true
. allow_unused_http_interactions
defaults totrue
but in case its set tofalse
in your test, changing it back totrue
might save you.

I help out with the VCR gem, but it can always use more maintainers.
If you'd like to help maintain a well-used gem please spend some time reviewing pull requests, issues, or participating in discussions. We're also always grateful for
.
If you'd like to help maintain a well-used gem please spend some time reviewing pull requests, issues, or participating in discussions. We're also always grateful for