Sha256: f4044544cdf003532cc9ec5824f168d923ba87f389d9bdbdbc275feb63f9cf99

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 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)
    assert_equal(message, e.message)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webmock-1.5.0 test/test_helper.rb
webmock-1.4.0 test/test_helper.rb