1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Added fakeweb to make sure no external requests get out.

This commit is contained in:
John Nunemaker 2009-08-22 21:14:32 -04:00 committed by Sandro Turriate
parent c1b15417a7
commit 6f12a866a0

View file

@ -1,6 +1,10 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
gem 'rspec', '>= 1.2.8'
gem 'fakeweb'
require 'spec/autorun'
require 'fakeweb'
FakeWeb.allow_net_connect = false
def file_fixture(filename)
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read