Sha256: 3684afa15a31d77f656ba732427c70c46cbaa7bb13a8368b2e8f5334dcff5a56

Contents?: true

Size: 622 Bytes

Versions: 40

Compression:

Stored size: 622 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_raise(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

40 entries across 40 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/webmock-1.8.11/test/test_helper.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/webmock-1.8.11/test/test_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/webmock-1.8.11/test/test_helper.rb
webmock-1.13.0 test/test_helper.rb
webmock-1.12.3 test/test_helper.rb
webmock-1.12.2 test/test_helper.rb
webmock-1.12.1 test/test_helper.rb
webmock-1.12.0 test/test_helper.rb
webmock-1.11.0 test/test_helper.rb
webmock-1.10.2 test/test_helper.rb
webmock-1.10.1 test/test_helper.rb
webmock-1.10.0 test/test_helper.rb
webmock-1.9.3 test/test_helper.rb
webmock-1.9.2 test/test_helper.rb
webmock-1.9.1 test/test_helper.rb
simple-client-0.0.3 vendor/bundle/ruby/1.9.1/gems/webmock-1.8.8/test/test_helper.rb
webmock-1.9.0 test/test_helper.rb
webmock-1.8.11 test/test_helper.rb
webmock-1.8.10 test/test_helper.rb
webmock-1.8.9 test/test_helper.rb