spec/twilio_spec.rb in twilio-ruby-5.3.0 vs spec/twilio_spec.rb in twilio-ruby-5.3.1
- old
+ new
@@ -1,14 +1,29 @@
\ No newline at end of file
+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