Sha256: 2af70586b99d2672ba27e174662162261b63177ffd43eaa483fdc2b9cc547c5c

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 Bytes

Contents

module WebMockMacros
  def without_webmock_callbacks
    before(:all) do
      @original_webmock_callbacks = ::WebMock::CallbackRegistry.callbacks
      ::WebMock::CallbackRegistry.reset
    end

    after(:all) do
      @original_webmock_callbacks.each do |cb|
        ::WebMock::CallbackRegistry.add_callback(cb[:options], cb[:block])
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vcr-1.6.0 spec/support/webmock_macros.rb
vcr-1.5.1 spec/support/webmock_macros.rb
vcr-1.5.0 spec/support/webmock_macros.rb
vcr-1.4.0 spec/support/webmock_macros.rb
vcr-1.3.3 spec/support/webmock_macros.rb
vcr-1.3.2 spec/support/webmock_macros.rb
vcr-1.3.1 spec/support/webmock_macros.rb
vcr-1.3.0 spec/support/webmock_macros.rb
vcr-1.2.0 spec/support/webmock_macros.rb