Sha256: 5dec30ee8975c78eaa027fdf1a6e8daf6e99d39858d346767d359d14cad97f3a

Contents?: true

Size: 396 Bytes

Versions: 140

Compression:

Stored size: 396 Bytes

Contents

describe Twilio do
  after(:each) do
    Twilio.instance_variable_set('@configuration', nil)
  end

  it 'should set the account sid and auth token with a config block' do
    Twilio.configure do |config|
      config.account_sid = 'someSid'
      config.auth_token = 'someToken'
    end

    expect(Twilio.account_sid).to eq('someSid')
    expect(Twilio.auth_token).to eq('someToken')
  end
end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
twilio-ruby-5.4.2 spec/twilio_spec.rb
twilio-ruby-5.4.1 spec/twilio_spec.rb
twilio-ruby-5.4.0 spec/twilio_spec.rb
twilio-ruby-5.3.1 spec/twilio_spec.rb
twilio-ruby-5.2.3 spec/twilio_spec.rb
twilio-ruby-5.2.2 spec/twilio_spec.rb
twilio-ruby-5.2.1 spec/twilio_spec.rb
twilio-ruby-5.2.0 spec/twilio_spec.rb
twilio-ruby-5.1.2 spec/twilio_spec.rb
twilio-ruby-5.1.1 spec/twilio_spec.rb
twilio-ruby-5.1.0 spec/twilio_spec.rb
twilio-ruby-5.0.0.alpha1 spec/twilio_spec.rb
twilio-ruby-5.0.0 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc26 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc25 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc24 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc23 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc22 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc21 spec/twilio_spec.rb
twilio-ruby-5.0.0.rc20 spec/twilio_spec.rb