From 6f12a866a03d6e6473b59680bfe6cb76bb28caf9 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Sat, 22 Aug 2009 21:14:32 -0400 Subject: [PATCH] Added fakeweb to make sure no external requests get out. --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d013186..d51eaaf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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