spec/spec_helper.rb in jugend-httparty-0.5.2.3 vs spec/spec_helper.rb in jugend-httparty-0.5.3.4

- old
+ new

@@ -1,15 +1,19 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty') 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 end Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} Spec::Runner.configure do |config| config.include HTTParty::StubResponse + config.before(:suite) do + FakeWeb.allow_net_connect = false + end + config.after(:suite) do + FakeWeb.allow_net_connect = true + end end