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:
parent
c1b15417a7
commit
6f12a866a0
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
||||||
gem 'rspec', '>= 1.2.8'
|
gem 'rspec', '>= 1.2.8'
|
||||||
|
gem 'fakeweb'
|
||||||
require 'spec/autorun'
|
require 'spec/autorun'
|
||||||
|
require 'fakeweb'
|
||||||
|
|
||||||
|
FakeWeb.allow_net_connect = false
|
||||||
|
|
||||||
def file_fixture(filename)
|
def file_fixture(filename)
|
||||||
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
|
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
|
||||||
|
|
Loading…
Reference in a new issue