myronmarston/vcr — Issue #130: Using Cucumber tags with VCR forces a cassette directory structure
Author: dbalatero
Created: 2012-01-27 03:51:01+00:00
State: open

Hey Myron,

There's no way for me to override the path for a VCR cassette when using `VCR.cucumber_tags`. In my case, I want to reuse a cassette that I recorded in RSpec for an integration test in Cucumber.

The `def tags` function in `test_frameworks/cucumber.rb` forces the files to live at `features/cucumber_tags/#{tag_name}`.

See: https://github.com/myronmarston/vcr/blob/master/lib/vcr/test_frameworks/cucumber.rb#L32

Would it be welcome for me to add an option to specify the cassette path in a tag definition? Something like:

```ruby
VCR.cucumber_tags do |t|
t.tag '@mytag', :cassette => { :path => 'my/path/to/cassette', :record => :new_episodes }
end
```