Sha256: 00e34fa7eed42ae9207d3985dd63a51ed01dea69528ed7e227f40dc86818363a
Contents?: true
Size: 669 Bytes
Versions: 5
Compression:
Stored size: 669 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class ConnectionTest < Test::Unit::TestCase #:nodoc: all context "A Twilio connection" do setup do @connection = Twilio::Connection.new('mysid', 'mytoken') end context "when initializing" do should "have correct url" do assert_equal "#{Twilio::Connection::TWILIO_URL}/mysid", @connection.class.base_uri end end context "when invoked as class method" do setup do Twilio.connect('mysid', 'mytoken') end should "have correct url" do assert_equal "#{Twilio::TWILIO_URL}/mysid", Twilio.base_uri end end end end
Version data entries
5 entries across 5 versions & 3 rubygems