Skip to content

Commit

Permalink
Updated VCR usage suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Aug 6, 2010
1 parent 3e69767 commit dd5c563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ setting.
## Suggested Workflow

First, configure VCR as I have above. I like setting the default record mode to `:none`
so that no new HTTP requests are made without me explicitly allowing it.
so that no new HTTP requests are made without me explicitly allowing it, but if you may prefer to
set it to `:new_episodes`.

When an HTTP request is made, you'll get an error such as:

Expand Down Expand Up @@ -267,6 +268,9 @@ record the HTTP interaction. I usually remove the record mode at this point so
of `:none` in the future. Future test runs will get the recorded response, and if your code changes so
that it is making a new HTTP request, you'll be notified by an error as shown above.

VCR is designed to be used very granularly. Rather than inserting a global cassette, I recommend you wrap individual
blocks of code in `VCR.use_cassette` and record logically grouped sets of requests.

## Ruby Interpreter Compatibility

VCR has been tested on the following ruby interpreters:
Expand Down

0 comments on commit dd5c563

Please sign in to comment.