Sha256: 01f1f5ba961306fc3d1633d3208e6354e69a2d2467031eebaba69900462906b9
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 Bytes
Contents
require File.dirname(__FILE__) + '/../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
5 entries across 5 versions & 1 rubygems