Sha256: 5a748404525d41f3a4c4ded724de91fb1fb805a65b5c289ad77d495e2cc49a2e

Contents?: true

Size: 623 Bytes

Versions: 213

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

213 entries across 202 versions & 14 rubygems

Version Path
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
webmock-3.14.0 test/test_helper.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/test/test_helper.rb
cloudsmith-api-0.57.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/test/test_helper.rb
webmock-3.13.0 test/test_helper.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/webmock-2.3.2/test/test_helper.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/webmock-2.3.2/test/test_helper.rb
webmock-3.12.2 test/test_helper.rb
webmock-3.12.1 test/test_helper.rb
webmock-3.12.0 test/test_helper.rb
webmock-3.11.3 test/test_helper.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/webmock-3.11.2/test/test_helper.rb