Sha256: a2e8201ceb48e99b9edbcbe7e8aea43860245c77998810f8cd2bf7d085611b0c
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'test_helper' class IncomingPhoneNumberTest < Test::Unit::TestCase #:nodoc: all context "An incoming phone number" do setup do Twilio.connect('mysid', 'mytoken') end should "be retrievable individually" do assert_equal stub_response(:get, :incoming_phone_number, :resource => 'IncomingPhoneNumbers/PNe536dfda7c6184afab78d980cb8cdf43'), Twilio::IncomingPhoneNumber.get('PNe536dfda7c6184afab78d980cb8cdf43') end should "be retrievable as a list" do assert_equal stub_response(:get, :incoming_phone_numbers, :resource => 'IncomingPhoneNumbers'), Twilio::IncomingPhoneNumber.list end context "using deprecated API" do setup do @connection = Twilio::Connection.new('mysid', 'mytoken') @incoming = Twilio::IncomingPhoneNumber.new(@connection) end should "be retrievable individually" do assert_equal stub_response(:get, :incoming_phone_number, :resource => 'IncomingPhoneNumbers/PNe536dfda7c6184afab78d980cb8cdf43'), @incoming.get('PNe536dfda7c6184afab78d980cb8cdf43') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twilio-2.9.0 | test/twilio/incoming_phone_number_test.rb |