diff options
author | Nick Lewis <nick@puppetlabs.com> | 2010-06-16 16:21:21 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-06-27 03:46:56 +1000 |
commit | 9d0d94c27174bc25ba823028a612f8fa04dd847b (patch) | |
tree | c18460796f828dc66bceabf9ea4dde181b01db48 | |
parent | da66e1602a87249ff1496b47050769b1ce36daf6 (diff) | |
download | puppet-9d0d94c27174bc25ba823028a612f8fa04dd847b.tar.gz puppet-9d0d94c27174bc25ba823028a612f8fa04dd847b.tar.xz puppet-9d0d94c27174bc25ba823028a612f8fa04dd847b.zip |
[#3804] Fixed one failing spec for RackREST
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
-rwxr-xr-x | 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 e916712f3..6eb73e588 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 |