Sha256: e281b95606c4a1cdd6f3edd982929253a5f231504477b1510f43c4fe89fe0d29

Contents?: true

Size: 794 Bytes

Versions: 77

Compression:

Stored size: 794 Bytes

Contents

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

require 'bundler'
Bundler.setup

Dir.glob(File.expand_path('../support/**/*.rb', __FILE__), &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

77 entries across 77 versions & 1 rubygems

Version Path
twilio-ruby-5.21.2 spec/spec_helper.rb
twilio-ruby-5.21.1 spec/spec_helper.rb
twilio-ruby-5.21.0 spec/spec_helper.rb
twilio-ruby-5.20.1 spec/spec_helper.rb
twilio-ruby-5.20.0 spec/spec_helper.rb
twilio-ruby-5.19.0 spec/spec_helper.rb
twilio-ruby-5.18.0 spec/spec_helper.rb
twilio-ruby-5.17.0 spec/spec_helper.rb
twilio-ruby-5.16.0 spec/spec_helper.rb
twilio-ruby-5.15.2 spec/spec_helper.rb
twilio-ruby-5.15.1 spec/spec_helper.rb
twilio-ruby-5.15.0 spec/spec_helper.rb
twilio-ruby-5.14.1 spec/spec_helper.rb
twilio-ruby-5.14.0 spec/spec_helper.rb
twilio-ruby-5.13.0 spec/spec_helper.rb
twilio-ruby-5.12.4 spec/spec_helper.rb
twilio-ruby-5.12.3 spec/spec_helper.rb
twilio-ruby-5.12.2 spec/spec_helper.rb
twilio-ruby-5.12.1 spec/spec_helper.rb
twilio-ruby-5.12.0 spec/spec_helper.rb