Sha256: 43dd177dc1f4bb9819c400888cfa4618fa6ad47bc0744781a35509c7095f4181
Contents?: true
Size: 732 Bytes
Versions: 9
Compression:
Stored size: 732 Bytes
Contents
require 'rubygems' require 'test/unit' require 'fakeweb' require 'shoulda' require 'matchy' require 'yaml' FakeWeb.allow_net_connect = false $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'twilio' class Test::Unit::TestCase #:nodoc: all end def fixture(filename) #:nodoc: path = File.join(File.dirname(__FILE__), "fixtures/xml/#{filename}.xml") File.read path end def twilio_url(url=nil) #:nodoc: "https://mysid:mytoken@api.twilio.com:443/2008-08-01/Accounts/mysid#{'/' + url if url}" end def verb_response(verb) #:nodoc: path = File.join(File.dirname(__FILE__), "fixtures/yml/verb_responses.yml") YAML.load_file(path)[verb.to_s]['response'] end
Version data entries
9 entries across 9 versions & 3 rubygems