Sha256: b03d6bd0051c9c09419e618b763471c493029ec78ce923f59c64509dd968950a
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 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 end def fixture(filename) path = File.join(File.dirname(__FILE__), "fixtures/xml/#{filename}.xml") File.read path end def twilio_url(url=nil) "https://mysid:mytoken@api.twilio.com:443/2008-08-01/Accounts/mysid#{'/' + url if url}" end def verb_response(verb) path = File.join(File.dirname(__FILE__), "fixtures/yml/verb_responses.yml") YAML.load_file(path)[verb.to_s]['response'] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webficient-twilio-1.0.0 | test/test_helper.rb |