Sha256: ab020f41359c3453327912a07d9de8b88669d4f7f807a2bb00794cb84c6b0e78

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

require 'helper'

class TwimlbinTest < Test::Unit::TestCase

  def test_publish
    twiml = Twimlbin.new
    external_url = twiml.create('twimlbin_ruby_unit_test')

    uri = URI.parse(external_url)
    req = Net::HTTP::Get.new(external_url)
    req.add_field('User-Agent', 'TwilioProxy')
    res = Net::HTTP.start(uri.host, uri.port) {|http| http.request(req) }

    assert_equal 'twimlbin_ruby_unit_test', res.body
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilio-twimlbin-0.0.4 test/test_twimlbin.rb
twilio-twimlbin-0.0.3 test/test_twimlbin.rb
twilio-twimlbin-0.0.2 test/test_twimlbin.rb