Skip to content

Commit

Permalink
Mitigates Style/TraillingComma
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nys committed Apr 17, 2015
1 parent 8e4476f commit 361e656
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Guardfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rspec_options = {
version: 1,
all_after_pass: false,
all_on_start: false,
all_on_start: false
}

guard 'rspec', rspec_options do
Expand Down
2 changes: 1 addition & 1 deletion lib/httparty/net_digest_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def authorization_header
%Q(realm="#{@response['realm']}"),
%Q(nonce="#{@response['nonce']}"),
%Q(uri="#{@path}"),
%Q(response="#{request_digest}"),
%Q(response="#{request_digest}")
]

if qop_present?
Expand Down
8 changes: 4 additions & 4 deletions spec/httparty/net_digest_auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def cookie_header
context "with specified quality of protection (qop)" do
before do
@digest = setup_digest({
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE", qop="auth"',
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE", qop="auth"'
})
end

Expand Down Expand Up @@ -106,7 +106,7 @@ def cookie_header
context "when quality of protection (qop) is unquoted" do
before do
@digest = setup_digest({
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE", qop=auth',
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE", qop=auth'
})
end

Expand All @@ -118,7 +118,7 @@ def cookie_header
context "with unspecified quality of protection (qop)" do
before do
@digest = setup_digest({
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE"',
'www-authenticate' => 'Digest realm="myhost@testrealm.com", nonce="NONCE"'
})
end

Expand Down Expand Up @@ -155,7 +155,7 @@ def cookie_header
context "with multiple authenticate headers" do
before do
@digest = setup_digest({
'www-authenticate' => 'NTLM, Digest realm="myhost@testrealm.com", nonce="NONCE", qop="auth"',
'www-authenticate' => 'NTLM, Digest realm="myhost@testrealm.com", nonce="NONCE", qop="auth"'
})
end

Expand Down
4 changes: 2 additions & 2 deletions spec/support/ssl_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module SSLTestHelper
def ssl_verify_test(mode, ca_basename, server_cert_filename, options = {})
options = {
format: :json,
timeout: 30,
timeout: 30
}.merge(options)

if mode
Expand Down Expand Up @@ -34,7 +34,7 @@ def ssl_verify_test(mode, ca_basename, server_cert_filename, options = {})

test_server = SSLTestServer.new({
rsa_key: path.join('server.key').read,
cert: path.join(server_cert_filename).read,
cert: path.join(server_cert_filename).read
})

test_server.start
Expand Down

0 comments on commit 361e656

Please sign in to comment.