Sha256: a2b28b0d3c660bc7ddce39a9fb13a59cd6a792cf8af4af599fee7e38f1630cbf

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

require 'spec_helper'

describe 'Account' do
  before(:all) do
    Twilio.connect('mysid', 'mytoken')
  end

  it "gets an account" do
    response, url = stub_get(:account)

    Twilio::Account.get.should eql response
    WebMock.should have_requested(:get, twilio_url)
  end

  it "updates name" do
    response, url = stub_put(:account_renamed)

    Twilio::Account.update_name('Bubba').should eql response
    WebMock.should have_requested(:put, twilio_url).with(:body => {:FriendlyName => 'Bubba'})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twilio-3.1.1 spec/twilio/account_spec.rb