summaryrefslogtreecommitdiffstats
path: root/spec/unit/network
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-06-16 16:21:21 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit1d49defe9b2a5f7725d74d2d73880ed342399d83 (patch)
tree2c72f50ca45b22524367dbafa191e03e724abe00 /spec/unit/network
parent1e89bff59448bfc22c22f0b03bf965b7f4da0c77 (diff)
downloadpuppet-1d49defe9b2a5f7725d74d2d73880ed342399d83.tar.gz
puppet-1d49defe9b2a5f7725d74d2d73880ed342399d83.tar.xz
puppet-1d49defe9b2a5f7725d74d2d73880ed342399d83.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
Diffstat (limited to 'spec/unit/network')
-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 75642f9f7..b9d835284 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