spec/httpi/adapter/curb_spec.rb in httpi-0.9.7 vs spec/httpi/adapter/curb_spec.rb in httpi-1.0.0

- old
+ new

@@ -167,9 +167,16 @@ request = basic_request { |request| request.auth.digest "username", "password" } curb.expects(:http_auth_types=).with(:digest) adapter.get(request) end + + it "is set to :gssnegotiate for HTTP Negotiate auth" do + request = basic_request { |request| request.auth.gssnegotiate } + + curb.expects(:http_auth_types=).with(:gssnegotiate) + adapter.get(request) + end end describe "username and password" do it "is set for HTTP basic auth" do request = basic_request { |request| request.auth.basic "username", "password" }