A new version of Rack::MockRequest automatically uppercases the HTTP
method, expecting that any method passed in should properly be uppercase.
e.g. GET, PUT, POST

This behavior is on line 81 of Rack::MockRequest:
http://rack.rubyforge.org/doc/classes/Rack/MockRequest.src/M000230.html

Reviewed by Matt Robinson

Signed-off-by: Nick Lewis <[email protected]>
---
 spec/unit/network/http/rack/rest.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/unit/network/http/rack/rest.rb 
b/spec/unit/network/http/rack/rest.rb
index e916712..6eb73e5 100755
--- a/spec/unit/network/http/rack/rest.rb
+++ b/spec/unit/network/http/rack/rest.rb
@@ -46,8 +46,8 @@ describe "Puppet::Network::HTTP::RackREST" do
             end
 
             it "should use the REQUEST_METHOD as the http method" do
-                req = mk_req('/', :method => 'mymethod')
-                @handler.http_method(req).should == "mymethod"
+                req = mk_req('/', :method => 'MYMETHOD')
+                @handler.http_method(req).should == "MYMETHOD"
             end
 
             it "should return the request path as the path" do
-- 
1.7.1

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to