test/helper.rb in codeclimate-services-1.1.0 vs test/helper.rb in codeclimate-services-1.2.0
- old
+ new
@@ -41,9 +41,17 @@
{ data: "my data" },
event(:quality, to: "D", from: "C")
).service_post(*args)
end
+ def service_post_with_redirects(*args)
+ service(
+ CC::Service,
+ { data: "my data" },
+ event(:quality, to: "D", from: "C")
+ ).service_post_with_redirects(*args)
+ end
+
def stub_http(url, response = nil, &block)
block ||= lambda{|*args| response }
@stubs.post(url, &block)
end
end