test/helper.rb in buzzsprout-0.0.4 vs test/helper.rb in buzzsprout-0.0.6
- old
+ new
@@ -1,17 +1,11 @@
require 'test/unit'
require 'pathname'
-require 'rubygems'
-gem 'shoulda', '>= 2.10.1'
-gem 'jnunemaker-matchy', '0.4.0'
-gem 'fakeweb', '>= 1.2.5'
-
require 'shoulda'
require 'matchy'
require 'fakeweb'
-require 'redgreen'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'buzzsprout'
@@ -31,10 +25,10 @@
url =~ /^http/ ? url : "http://www.buzzsprout.com#{url}"
end
def stub_get(url, filename, options={})
opts = {:body => fixture_file(filename)}.merge(options)
-
+
FakeWeb.register_uri(:get, buzzsprout_url(url), opts)
end
def stub_post(url, filename)
FakeWeb.register_uri(:post, buzzsprout_url(url), :body => fixture_file(filename))