Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jul 26, 2013
1 parent 2c1271d commit e2428e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/savon/request.rb
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion spec/savon/options_spec.rb
Expand Up @@ -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)
Expand Down

0 comments on commit e2428e1

Please sign in to comment.