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