summaryrefslogtreecommitdiff
path: root/spec/mixlib/authentication/http_authentication_request_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-06-26 14:19:59 -0700
committerGitHub <noreply@github.com>2018-06-26 14:19:59 -0700
commit73b8759f8f29933e9bed04d9c5e26dc71defadac (patch)
treef05c50c941d5ea2c6d8173c3337a297d3c8707d2 /spec/mixlib/authentication/http_authentication_request_spec.rb
parent0cfadddb41abfafcf5bca47ecb2c7760f1b517a4 (diff)
parentcfde9c1490bfbaa9f4fc2bc390955117d1b25b31 (diff)
downloadmixlib-authentication-73b8759f8f29933e9bed04d9c5e26dc71defadac.tar.gz
Merge pull request #40 from chef/lcg/remove-hashrockets
remove hashrocket syntax
Diffstat (limited to 'spec/mixlib/authentication/http_authentication_request_spec.rb')
-rw-r--r--spec/mixlib/authentication/http_authentication_request_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/mixlib/authentication/http_authentication_request_spec.rb b/spec/mixlib/authentication/http_authentication_request_spec.rb
index 0025cf4..7c45df1 100644
--- a/spec/mixlib/authentication/http_authentication_request_spec.rb
+++ b/spec/mixlib/authentication/http_authentication_request_spec.rb
@@ -64,18 +64,18 @@ describe Mixlib::Authentication::HTTPAuthenticationRequest do
end
it "normalizes the headers to lowercase symbols" do
- expected = { :host => "127.0.0.1",
- :x_ops_sign => "version=1.0",
- :x_ops_requestid => "127.0.0.1 1258566194.85386",
- :x_ops_timestamp => "2009-01-01T12:00:00Z",
- :x_ops_content_hash => "DFteJZPVv6WKdQmMqZUQUumUyRs=",
- :x_ops_userid => "spec-user",
- :x_ops_authorization_1 => "jVHrNniWzpbez/eGWjFnO6lINRIuKOg40ZTIQudcFe47Z9e/HvrszfVXlKG4",
- :x_ops_authorization_2 => "NMzYZgyooSvU85qkIUmKuCqgG2AIlvYa2Q/2ctrMhoaHhLOCWWoqYNMaEqPc",
- :x_ops_authorization_3 => "3tKHE+CfvP+WuPdWk4jv4wpIkAz6ZLxToxcGhXmZbXpk56YTmqgBW2cbbw4O",
- :x_ops_authorization_4 => "IWPZDHSiPcw//AYNgW1CCDptt+UFuaFYbtqZegcBd2n/jzcWODA7zL4KWEUy",
- :x_ops_authorization_5 => "9q4rlh/+1tBReg60QdsmDRsw/cdO1GZrKtuCwbuD4+nbRdVBKv72rqHX9cu0",
- :x_ops_authorization_6 => "utju9jzczCyB+sSAQWrxSsXB/b8vV2qs0l4VD2ML+w==" }
+ expected = { host: "127.0.0.1",
+ x_ops_sign: "version=1.0",
+ x_ops_requestid: "127.0.0.1 1258566194.85386",
+ x_ops_timestamp: "2009-01-01T12:00:00Z",
+ x_ops_content_hash: "DFteJZPVv6WKdQmMqZUQUumUyRs=",
+ x_ops_userid: "spec-user",
+ x_ops_authorization_1: "jVHrNniWzpbez/eGWjFnO6lINRIuKOg40ZTIQudcFe47Z9e/HvrszfVXlKG4",
+ x_ops_authorization_2: "NMzYZgyooSvU85qkIUmKuCqgG2AIlvYa2Q/2ctrMhoaHhLOCWWoqYNMaEqPc",
+ x_ops_authorization_3: "3tKHE+CfvP+WuPdWk4jv4wpIkAz6ZLxToxcGhXmZbXpk56YTmqgBW2cbbw4O",
+ x_ops_authorization_4: "IWPZDHSiPcw//AYNgW1CCDptt+UFuaFYbtqZegcBd2n/jzcWODA7zL4KWEUy",
+ x_ops_authorization_5: "9q4rlh/+1tBReg60QdsmDRsw/cdO1GZrKtuCwbuD4+nbRdVBKv72rqHX9cu0",
+ x_ops_authorization_6: "utju9jzczCyB+sSAQWrxSsXB/b8vV2qs0l4VD2ML+w==" }
expect(@http_authentication_request.headers).to eq(expected)
end