Sha256: ea7037db082438ff3b3759bdf54e985a441965fc1c7b048179077cd391fa4a55

Contents?: true

Size: 354 Bytes

Versions: 28

Compression:

Stored size: 354 Bytes

Contents

require 'minitest/unit'
require 'webmock'

MiniTest::Unit::TestCase.class_eval do
  include WebMock::API

  alias_method :teardown_without_webmock, :teardown
  def teardown_with_webmock
    teardown_without_webmock
    WebMock.reset!
  end
  alias_method :teardown, :teardown_with_webmock
end

WebMock::AssertionFailure.error_class = MiniTest::Assertion

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/webmock-1.8.11/lib/webmock/minitest.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/webmock-1.8.11/lib/webmock/minitest.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/webmock-1.8.11/lib/webmock/minitest.rb
simple-client-0.0.3 vendor/bundle/ruby/1.9.1/gems/webmock-1.8.8/lib/webmock/minitest.rb
webmock-1.9.0 lib/webmock/minitest.rb
webmock-1.8.11 lib/webmock/minitest.rb
webmock-1.8.10 lib/webmock/minitest.rb
webmock-1.8.9 lib/webmock/minitest.rb
simple-client-0.0.2 vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/minitest.rb
webmock-1.8.8 lib/webmock/minitest.rb
webmock-1.8.7 lib/webmock/minitest.rb
webmock-1.8.6 lib/webmock/minitest.rb
webmock-1.8.5 lib/webmock/minitest.rb
webmock-1.8.4 lib/webmock/minitest.rb
webmock-1.8.3 lib/webmock/minitest.rb
webmock-1.8.2 lib/webmock/minitest.rb
webmock-1.8.1 lib/webmock/minitest.rb
webmock-1.8.0 lib/webmock/minitest.rb
webmock-1.7.10 lib/webmock/minitest.rb
webmock-1.7.8 lib/webmock/minitest.rb