require "bundler" Bundler.setup :default, :test %w(minitest/spec webmock ./lib/hugs uri).each { |r| require r } class MiniTest::Unit::TestCase include WebMock::API def valid_options opts = {} { :host => "example.com", :port => 80, :scheme => "https" }.merge opts end def url path = "/", credentials = nil URI::HTTPS.build( valid_options( :path => path, :userinfo => credentials ) ).to_s end end MiniTest::Unit.autorun