Sha256: 58868eb9426dc7e635867a83ddc1395e24eb64fc6e3a333e0212042be8ec2670
Contents?: true
Size: 536 Bytes
Versions: 5
Compression:
Stored size: 536 Bytes
Contents
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
Version data entries
5 entries across 5 versions & 2 rubygems