Sha256: b42c562e080ef0f851b98e4d2da63b98ed8e6ccc34cd59a72c798282e1c44aa6

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

module SPV
  module Helpers
    # 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.
    #
    # @return [void]
    # @api public
    def self.eject_all_cassettes
      while VCR.eject_cassette
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
site_prism.vcr-0.3.0 lib/site_prism_vcr/vcr_helpers.rb
site_prism.vcr-0.2.0 lib/site_prism_vcr/vcr_helpers.rb
site_prism.vcr-0.1.2 lib/site_prism_vcr/vcr_helpers.rb
site_prism.vcr-0.1.1 lib/site_prism_vcr/vcr_helpers.rb
site_prism.vcr-0.1.0 lib/site_prism_vcr/vcr_helpers.rb
site_prism.vcr-0.0.1 lib/site_prism_vcr/vcr_helpers.rb