On Wed, 2012-07-25 at 15:23 +0200, [email protected] wrote:
> From: Michal Fojtik <[email protected]>
> 
> Since each driver test use it's own VCR settings, it is not
> longer possible to load all tests at once with rake test.
> 
> For this this patch will split different test tasks so drivers
> do no overide their VCR configurations

Why can't we have a common utility method to set up VCR configuration,
and do the switching in the before method of each test (where you now
call VCR.insert_cassette) ? Or in $driver/common.rb for all I care, as
long as it's just a bunch of method calls, rather than actual code.

I actually like having separate tasks for the different drivers, but I
don't like that e.g. rhevm/common.rb and ec2/common.rb contain a whole
bunch of code that is duplicated.

David


Reply via email to