Sha256: 5a748404525d41f3a4c4ded724de91fb1fb805a65b5c289ad77d495e2cc49a2e

Contents?: true

Size: 623 Bytes

Versions: 214

Compression:

Stored size: 623 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
  AssertionFailedError =  Test::Unit::AssertionFailedError rescue MiniTest::Assertion
  def assert_raise_with_message(e, message, &block)
    e = assert_raises(e, &block)
    if message.is_a?(Regexp)
      assert_match(message, e.message)
    else
      assert_equal(message, e.message)
    end
  end

  def assert_fail(message, &block)
    assert_raise_with_message(AssertionFailedError, message, &block)
  end
end

Version data entries

214 entries across 203 versions & 14 rubygems

Version Path
webmock-1.24.2 test/test_helper.rb
webmock-1.24.1 test/test_helper.rb
webmock-1.24.0 test/test_helper.rb
webmock-1.23.0 test/test_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/webmock-1.20.4/test/test_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/webmock-1.20.4/test/test_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/webmock-1.20.4/test/test_helper.rb
webmock-1.22.6 test/test_helper.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/webmock-1.22.5/test/test_helper.rb
webmock-1.22.5 test/test_helper.rb
dwolla_swagger-1.0.6 vendor/bundle/ruby/2.2.0/gems/webmock-1.22.3/test/test_helper.rb
webmock-1.22.3 test/test_helper.rb
webmock-1.22.2 test/test_helper.rb
webmock-1.22.1 test/test_helper.rb
webmock-1.21.0 test/test_helper.rb
webmock-1.20.4 test/test_helper.rb
webmock-1.20.3 test/test_helper.rb
webmock-1.20.2 test/test_helper.rb
webmock-1.20.1 test/test_helper.rb
webmock-1.20.0 test/test_helper.rb