test/helper.rb in chargify-0.1.0 vs test/helper.rb in chargify-0.2.0
- old
+ new
@@ -49,6 +49,13 @@
def stub_put(url, filename, status=nil)
options = {:body => fixture_file(filename)}
options.merge!({:status => status}) unless status.nil?
FakeWeb.register_uri(:put, url, options)
-end
\ No newline at end of file
+end
+
+def stub_delete(url, filename, status=nil)
+ options = {:body => fixture_file(filename)}
+ options.merge!({:status => status}) unless status.nil?
+
+ FakeWeb.register_uri(:delete, url, options)
+end