summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-06-16 16:21:21 -0700
committerJames Turnbull <james@lovedthanlost.net>2010-06-27 03:46:56 +1000
commit9d0d94c27174bc25ba823028a612f8fa04dd847b (patch)
treec18460796f828dc66bceabf9ea4dde181b01db48
parentda66e1602a87249ff1496b47050769b1ce36daf6 (diff)
downloadpuppet-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-xspec/unit/network/http/rack/rest.rb4
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