spec/headers_spec.rb in api-auth-1.0.2 vs spec/headers_spec.rb in api-auth-1.0.3
- old
+ new
@@ -192,10 +192,10 @@
@request = Rack::Request.new(Rack::MockRequest.env_for("/resource.xml?foo=bar&bar=foo", :method => :put).merge!(headers))
@headers = ApiAuth::Headers.new(@request)
end
it "should generate the proper canonical string" do
- @headers.canonical_string.should == "text/plain,e59ff97941044f85df5297e1c302d260,http://example.org/resource.xml?foo=bar&bar=foo,Mon, 23 Jan 1984 03:29:56 GMT"
+ @headers.canonical_string.should == CANONICAL_STRING
end
it "should set the authorization header" do
@headers.sign_header("alpha")
@headers.authorization_header.should == "alpha"