Sha256: 1ef98f2d5b4ba4e06c34e025432db5f50cc4fb5244828fdc2a0fcb5057aefa88

Contents?: true

Size: 474 Bytes

Versions: 43

Compression:

Stored size: 474 Bytes

Contents

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

  it 'should set the configuration with a config block' do
    Twilio.configure do |config|
      config.account_sid = 'someSid'
      config.auth_token = 'someToken'
      config.http_client = 'someClient'
    end

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
twilio-ruby-5.50.0 spec/twilio_spec.rb
twilio-ruby-5.49.0 spec/twilio_spec.rb
twilio-ruby-5.48.0 spec/twilio_spec.rb
twilio-ruby-5.47.0 spec/twilio_spec.rb
twilio-ruby-5.46.1 spec/twilio_spec.rb
twilio-ruby-5.46.0 spec/twilio_spec.rb
twilio-ruby-5.45.1 spec/twilio_spec.rb
twilio-ruby-5.45.0 spec/twilio_spec.rb
twilio-ruby-5.44.0 spec/twilio_spec.rb
twilio-ruby-5.43.0 spec/twilio_spec.rb
twilio-ruby-5.42.0 spec/twilio_spec.rb
twilio-ruby-5.41.0 spec/twilio_spec.rb
twilio-ruby-5.40.4 spec/twilio_spec.rb
twilio-ruby-5.40.3 spec/twilio_spec.rb
twilio-ruby-5.40.2 spec/twilio_spec.rb
twilio-ruby-5.40.1 spec/twilio_spec.rb
twilio-ruby-5.40.0 spec/twilio_spec.rb
twilio-ruby-5.39.3 spec/twilio_spec.rb
twilio-ruby-5.39.2 spec/twilio_spec.rb
twilio-ruby-5.39.1 spec/twilio_spec.rb