spec/spec_helper.rb in binged-0.1.1 vs spec/spec_helper.rb in binged-0.2.0

- old
+ new

@@ -5,10 +5,11 @@ require 'spec/autorun' require 'fakeweb' require 'binged' FakeWeb.allow_net_connect = false +Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} Spec::Runner.configure do |config| end @@ -21,9 +22,9 @@ file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename) File.read(file_path) end def stub_get(url, filename, options={}) - fakeweb_options = {:body => fixture_file(filename)}.merge(options) + fakeweb_options = {:response => fixture_file(filename)}.merge(options) FakeWeb.register_uri(:get, url, fakeweb_options) end