Sha256: 154d44fcbe6875ef4274d9e2c238751310612978c1d9c45c28c5359e98075265

Contents?: true

Size: 799 Bytes

Versions: 218

Compression:

Stored size: 799 Bytes

Contents

require 'rubygems'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require File.expand_path(File.dirname(__FILE__) + '/../test/http_request')

gem 'minitest'

require 'minitest/autorun'
require 'webmock/minitest'

test_class = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase

test_class.class_eval do

  def assert_raise(*exp, &block)
    assert_raises(*exp, &block)
  end

  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(MiniTest::Assertion, message, &block)
   end

end

Version data entries

218 entries across 207 versions & 14 rubygems

Version Path
cloudsmith-api-2.0.16 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/webmock-3.18.1/minitest/test_helper.rb
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/minitest/test_helper.rb
webmock-3.18.1 minitest/test_helper.rb