Permalink
Browse files

Update test to use correct method instead of always using HEAD

  • Loading branch information...
1 parent 9ea325c commit 36b95b116ac7520ced018f3e2e1ce430a8c94b84 @oriolgual oriolgual committed with Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/httparty/request_spec.rb
@@ -86,7 +86,7 @@
end
it "should use digest auth when configured" do
- FakeWeb.register_uri(:head, "http://api.foo.com/v1",
+ FakeWeb.register_uri(:get, "http://api.foo.com/v1",
:www_authenticate => 'Digest realm="Log Viewer", qop="auth", nonce="2CA0EC6B0E126C4800E56BA0C0003D3C", opaque="5ccc069c403ebaf9f0171e9517f40e41", stale=false')
@request.options[:digest_auth] = {:username => 'foobar', :password => 'secret'}

0 comments on commit 36b95b1

Please sign in to comment.