Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 536 Bytes
require 'rubygems'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'webmock/test_unit'
require 'test/unit'
class Test::Unit::TestCase
include WebMock::API
AssertionFailedError = Test::Unit::AssertionFailedError rescue MiniTest::Assertion
def assert_fail(message, &block)
e = assert_raise(AssertionFailedError, &block)
if message.is_a?(Regexp)
assert_match(message, e.message)
else
assert_equal(message, e.message)
end
end
end
Something went wrong with that request. Please try again.