Sha256: fbbdf357379a664ffd52ca3271d2d26871a217ce9d136b0b9a0f86a6d2a5b9e7

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

$:.unshift(File.join(File.dirname(__FILE__), "../lib"))
require 'minitest/autorun'
require 'minitest/unit'
require 'jubilee'
require 'net/http'
require 'net/http/post/multipart'
def hit(uris)
  uris.map do |u|
    res = nil

    if u.kind_of? String
      res = Net::HTTP.get(URI.parse(u))
    else
      url = URI.parse(u[0])
      res = Net::HTTP.new(url.host, url.port).start {|h| h.request(u[1]) }
    end

    assert res != nil, "Didn't get a response: #{u}"
    res
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-0.2.1 test/test_helper.rb
jubilee-0.2.0 test/test_helper.rb
jubilee-0.1.2 test/test_helper.rb