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.40.0 spec/spec_helper.rb
twilio-ruby-5.39.3 spec/spec_helper.rb
twilio-ruby-5.39.2 spec/spec_helper.rb
twilio-ruby-5.39.1 spec/spec_helper.rb
twilio-ruby-5.39.0 spec/spec_helper.rb
twilio-ruby-5.38.0 spec/spec_helper.rb
twilio-ruby-5.37.0 spec/spec_helper.rb
twilio-ruby-5.36.0 spec/spec_helper.rb
twilio-ruby-5.35.0 spec/spec_helper.rb
twilio-ruby-5.34.1 spec/spec_helper.rb
twilio-ruby-5.34.0 spec/spec_helper.rb
twilio-ruby-5.33.1 spec/spec_helper.rb
twilio-ruby-5.33.0 spec/spec_helper.rb
twilio-ruby-5.32.0 spec/spec_helper.rb
twilio-ruby-5.31.6 spec/spec_helper.rb
twilio-ruby-5.31.5 spec/spec_helper.rb
twilio-ruby-5.31.4 spec/spec_helper.rb
twilio-ruby-5.31.3 spec/spec_helper.rb
twilio-ruby-5.31.2 spec/spec_helper.rb
twilio-ruby-5.31.1 spec/spec_helper.rb