Sha256: e1ac3b06446313ea5efc1710ec13e2e77fc35f032629ef6d07bbd159c38e220e

Contents?: true

Size: 804 Bytes

Versions: 16

Compression:

Stored size: 804 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'bundler'
Bundler.setup

Dir.glob(File.expand_path('../support/**/*.rb', __FILE__)).sort.each(&method(:require))

require_relative './holodeck/holodeck.rb'
require_relative './holodeck/hologram.rb'

require 'twilio-ruby'
require 'rack'
require 'rspec/matchers'
require 'equivalent-xml'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:each) do
    @client = Twilio::REST::Client.new('AC' + 'a' * 32, 'AUTHTOKEN')
    @holodeck = Holodeck.new
    @client.http_client = @holodeck
  end
end

def account_sid
  ENV['ACCOUNT_SID']
end

def auth_token
  ENV['AUTH_TOKEN']
end

def parse(twiml_response)
  Nokogiri::XML::Document.parse(twiml_response.to_s, &:noblanks)
end

Version data entries

16 entries across 16 versions & 1 rubygems

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