Skip to content

Commit

Permalink
Re-organize description of record modes.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Feb 10, 2011
1 parent 9498ca2 commit f840dc3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
6 changes: 4 additions & 2 deletions features/record_modes/all.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Feature: :all

The `:all` record mode records all requests and does not
replay any previously recorded responds.
The `:all` record mode will:

- Record new interactions.
- Never replay previously recorded interactions.

This can be temporarily used to force VCR to re-record
a cassette (i.e. to ensure the responses are not out of date)
Expand Down
10 changes: 8 additions & 2 deletions features/record_modes/new_episodes.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Feature: :new_episodes

The `:new_episodes` record mode replays previously recorded
requests and records new ones.
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:
Expand Down
6 changes: 4 additions & 2 deletions features/record_modes/none.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Feature: :none

The `:none` record mode allows previously recorded responses
to be replayed, but raises an error for any new requests.
The `:none` record mode will:

- Replay previously recorded interactions.
- Cause an error to be raised for any new requests.

This is useful when your code makes potentially dangerous
HTTP requests. The `:none` record mode guarantees that no
Expand Down

0 comments on commit f840dc3

Please sign in to comment.