On Wed, 2013-03-13 at 10:05 +1100, Koper, Dies wrote:
> I've been wondering something about this re-recording.
> In the fgcp unit tests I have ' :record => :new_episodes' in default cassette
> options.
> The first time I run new tests, it does a recording. If I want to rerecord, I
> delete the relevant fixtures and rerun.
> Much easier than having to remember an environment property name.
> Also, even with the VCR_RECORD trigger, does it automatically override/delete
> old fixtures (especially if you've renamed or deleted tests)?
All that VCR_RECORD does is give you a convenient way to toggle the
record mode from the command line rather than by editing a source file.
Note though that this is only done for the rhevm tests; for the others,
somebody needs to go through tests/drivers/*/common.rb and change the
VCR setup to somewhere say c.default_cassette_options = { :record =>
vcr_record_mode }
David