Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.354 kb
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
Jump to Line
Something went wrong with that request. Please try again.