# File lib/vcr/test_frameworks/cucumber.rb, line 18deftags(*tag_names)
options = tag_names.last.is_a?(::Hash) ?tag_names.pop: {}
tag_names.eachdo|tag_name|tag_name = "@#{tag_name}"unlesstag_name=~%r^@/cassette_name = "cucumber_tags/#{tag_name.gsub(/\A@/, '')}"# It would be nice to use an Around hook here, but# cucumber has a bug: background steps do not run# within an around hook.# https://gist.github.com/652968@main_object.Before(tag_name) doVCR.insert_cassette(cassette_name, options)
end@main_object.After(tag_name) doVCR.eject_cassetteendself.class.add_tag(tag_name)
endend