Module: SPV::Helpers
- Defined in:
- lib/site_prism_vcr/vcr_helpers.rb
Class Method Summary collapse
-
.eject_all_cassettes ⇒ void
Ejects all cassettes from Vcr.
Class Method Details
.eject_all_cassettes ⇒ void
This method returns an undefined value.
Ejects all cassettes from Vcr.
It can be useful when you don’t define a waiter while describing cassettes which will be applied on an action (click, page loading actions or any other). If you don’t define a waiter this method should be used to avoid data mixing which can lead you to wrong behavior in your acceptance tests.
13 14 15 16 |
# File 'lib/site_prism_vcr/vcr_helpers.rb', line 13 def self.eject_all_cassettes while VCR.eject_cassette end end |