Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 29 lines (23 sloc) 0.718 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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'

class MiniTest::Unit::TestCase
  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
Something went wrong with that request. Please try again.