Sha256: 5087e43cd30db3eb5ff17340b6d1f57efa4e8ce4c180bfac20ed632d0fce3e16
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
require 'test_helper' class AccountTest < Test::Unit::TestCase #:nodoc: all context "An account" do setup do Twilio.connect('mysid', 'mytoken') end should "be retrievable" do assert_equal stub_response(:get, :account), Twilio::Account.get end should "be able to update name" do assert_equal stub_response(:put, :account_renamed), Twilio::Account.update_name('Bubba') end context "using deprecated API" do setup do @connection = Twilio::Connection.new('mysid', 'mytoken') @account = Twilio::Account.new(@connection) end should "be retrievable" do assert_equal stub_response(:get, :account), @account.get end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twilio-2.9.0 | test/twilio/account_test.rb |