Sha256: 8f4aab0872dd06d029e988fe7c7436f1e0b69ec996b7ce44ef65e155be693f41

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

require 'webmock'
require 'spec'
require 'webmock/adapters/rspec/request_profile_matcher'
require 'webmock/adapters/rspec/webmock_matcher'
require 'webmock/adapters/rspec/matchers'

Spec::Runner.configure { |config|

  config.include WebMock::Matchers

  config.before :each do
    WebMock.reset_webmock
  end
}

module WebMock
  private
  def assertion_failure(message)
    raise Spec::Expectations::ExpectationNotMetError.new(message)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
webmock-0.8.0 lib/webmock/adapters/rspec.rb
webmock-0.7.3 lib/webmock/adapters/rspec.rb
webmock-0.7.2 lib/webmock/adapters/rspec.rb