[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:34:41 UTC 2010


The following commit has been merged in the upstream branch:
commit 1d49defe9b2a5f7725d74d2d73880ed342399d83
Author: Nick Lewis <nick at puppetlabs.com>
Date:   Wed Jun 16 16:21:21 2010 -0700

    [#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

diff --git a/spec/unit/network/http/rack/rest.rb b/spec/unit/network/http/rack/rest.rb
index 75642f9..b9d8352 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list