i have to extend an exsiting cucumber feature with some new scenarios covering some new behaviour. At the moment this whole cucumber/vcr thingy is set up as such that it will look for cassettes with matching scenario name:
feature bar
@vcr
scenario foo
will look for a recorded cassette in ./cassettes/bar/foo.yml
. But there are further scenarios which could recycle the before recorded cassette. (The ones to add from my side too). So there is a folder bloated with the same cassette for each scenario but only renamed:
feature bar
@vcr
scenario foo
@vcr
scenario foo1
...
@vcr
scenario fooX
So were is ./cassettes/bar/foo.yml
, ./cassettes/bar/foo1.yml
... ./cassettes/bar/fooX.yml
with exact same content. What is the proper way to get this dry?
Is there a possibility to specify the vcr cassette to be used explicitly, something like?
@vcr(:cassette => foo)
scenario fooX
many thanks ;)