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.39.0 spec/twilio_spec.rb
twilio-ruby-5.38.0 spec/twilio_spec.rb
twilio-ruby-5.37.0 spec/twilio_spec.rb
twilio-ruby-5.36.0 spec/twilio_spec.rb
twilio-ruby-5.35.0 spec/twilio_spec.rb
twilio-ruby-5.34.1 spec/twilio_spec.rb
twilio-ruby-5.34.0 spec/twilio_spec.rb
twilio-ruby-5.33.1 spec/twilio_spec.rb
twilio-ruby-5.33.0 spec/twilio_spec.rb
twilio-ruby-5.32.0 spec/twilio_spec.rb
twilio-ruby-5.31.6 spec/twilio_spec.rb
twilio-ruby-5.31.5 spec/twilio_spec.rb
twilio-ruby-5.31.4 spec/twilio_spec.rb
twilio-ruby-5.31.3 spec/twilio_spec.rb
twilio-ruby-5.31.2 spec/twilio_spec.rb
twilio-ruby-5.31.1 spec/twilio_spec.rb
twilio-ruby-5.31.0 spec/twilio_spec.rb
twilio-ruby-5.30.0 spec/twilio_spec.rb
twilio-ruby-5.29.1 spec/twilio_spec.rb
twilio-ruby-5.29.0 spec/twilio_spec.rb