From e2428e1dcd53d7b249d2e2bb52323f9592dd279f Mon Sep 17 00:00:00 2001 From: rubiii Date: Fri, 26 Jul 2013 18:05:29 +0200 Subject: [PATCH] code style --- lib/savon/request.rb | 6 +++--- spec/savon/options_spec.rb | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/savon/request.rb b/lib/savon/request.rb index e47f5fd7..2471bd6e 100644 --- a/lib/savon/request.rb +++ b/lib/savon/request.rb @@ -35,9 +35,9 @@ def configure_ssl end def configure_auth - @http_request.auth.basic(*@globals[:basic_auth]) if @globals.include? :basic_auth - @http_request.auth.digest(*@globals[:digest_auth]) if @globals.include? :digest_auth - @http_request.auth.ntlm(*@globals[:ntlm]) if @globals.include?(:ntlm) + @http_request.auth.basic(*@globals[:basic_auth]) if @globals.include? :basic_auth + @http_request.auth.digest(*@globals[:digest_auth]) if @globals.include? :digest_auth + @http_request.auth.ntlm(*@globals[:ntlm]) if @globals.include? :ntlm end end diff --git a/spec/savon/options_spec.rb b/spec/savon/options_spec.rb index 3ed70146..5f203c20 100644 --- a/spec/savon/options_spec.rb +++ b/spec/savon/options_spec.rb @@ -390,7 +390,8 @@ credentials = ["admin", "secret"] client = new_client(:endpoint => @server.url, :ntlm => credentials) - # TODO: find a way to integration test this. including an entire ntlm server implementation seems a bit over the top though. + # TODO: find a way to integration test this. including an entire ntlm + # server implementation seems a bit over the top though. HTTPI::Auth::Config.any_instance.expects(:ntlm).with(*credentials) response = client.call(:authenticate)