Sha256: 593416e709ce78a7c0c53a3a5195abc558a0b480e52ae75295ee2abbff8686b9

Contents?: true

Size: 649 Bytes

Versions: 7

Compression:

Stored size: 649 Bytes

Contents

require 'rspec/matchers'
require 'twilio-ruby'
require './lib/twilio-ruby/credential/client_credential_provider'

describe 'Cluster Test' do
  before(:each) do
    @account_sid = ENV['TWILIO_ACCOUNT_SID']
    @client_secret = ENV['TWILIO_CLIENT_SECRET']
    @client_id = ENV['TWILIO_CLIENT_ID']
    @message_sid = ENV['TWILIO_MESSAGE_SID']
    @credential = Twilio::REST::ClientCredentialProvider.new(@client_id, @client_secret)
    @client = Twilio::REST::Client.new(@account_sid).credential_provider(@credential)
  end

  it 'can fetch a message' do
    response = @client.messages(@message_sid).fetch
    expect(response).to_not be_nil
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-7.5.0 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.5 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.4 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.3 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.2 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.1 cluster/cluster_oauth_spec.rb
twilio-ruby-7.4.0 cluster/cluster_oauth_spec.rb