Sha256: eb3d92632db3cdd8afcbc8c1382830f097d801770d8a6b121d0bd09d74a691db

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 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
  def assertion_failure(message)
    raise Spec::Expectations::ExpectationNotMetError.new(message)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webmock-0.9.1 lib/webmock/adapters/rspec.rb
webmock-0.9.0 lib/webmock/adapters/rspec.rb
webmock-0.8.2 lib/webmock/adapters/rspec.rb
webmock-0.8.1 lib/webmock/adapters/rspec.rb