lib/angelo/rspec/helpers.rb in angelo-0.1.1 vs lib/angelo/rspec/helpers.rb in angelo-0.1.2
- old
+ new
@@ -34,10 +34,10 @@
url = HTTP_URL % [DEFAULT_ADDR, DEFAULT_PORT]
@last_response = hc.__send__ method, url+path, params, headers
end
private :hc_req
- [:get, :post, :put, :delete, :options].each do |m|
+ [:get, :post, :put, :delete, :options, :head].each do |m|
define_method m do |path, params = {}, headers = {}|
hc_req m, path, params, headers
end
end