lib/angelo/minitest/helpers.rb in angelo-0.5.0 vs lib/angelo/minitest/helpers.rb in angelo-0.5.1
- old
+ new
@@ -63,10 +63,10 @@
::HTTP.__send__ method, url(path), params
end
end
private :http_req
- [:get, :post, :put, :delete, :options, :head].each do |m|
+ [:get, :patch, :post, :put, :delete, :options, :head].each do |m|
define_method m do |path, params = {}, headers = {}, &block|
hc_req m, path, params, headers, &block
end
end