test/helper.rb in createsend-5.0.0 vs test/helper.rb in createsend-5.1.0
- old
+ new
@@ -40,10 +40,11 @@
def stub_request(method, auth, url, filename, status=nil)
options = {:body => ""}
options.merge!({:body => fixture_file(filename)}) if filename
options.merge!({:status => status}) if status
options.merge!(:content_type => "application/json; charset=utf-8")
- FakeWeb.register_uri(method, createsend_url(auth, url), options)
+ createsend_url = createsend_url(auth, url)
+ FakeWeb.register_uri(method, createsend_url, options)
end
def stub_get(*args); stub_request(:get, *args) end
def stub_post(*args); stub_request(:post, *args) end
def stub_put(*args); stub_request(:put, *args) end