[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc1-141-gcdb2b90

Markus Roberts Markus at reality.com
Mon Aug 16 12:49:00 UTC 2010


The following commit has been merged in the upstream branch:
commit 8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7
Author: Markus Roberts <Markus at reality.com>
Date:   Fri Aug 6 10:34:31 2010 -0700

    Maint.  Passenger fix broke a test
    
    The content-length fix for passenger broke a test; this fixes it.

diff --git a/spec/unit/network/http/rack/rest_spec.rb b/spec/unit/network/http/rack/rest_spec.rb
index 9b3e1e5..96cf84c 100755
--- a/spec/unit/network/http/rack/rest_spec.rb
+++ b/spec/unit/network/http/rack/rest_spec.rb
@@ -82,8 +82,8 @@ describe "Puppet::Network::HTTP::RackREST" do
           @file.stubs(:is_a?).with(File).returns(true)
         end
 
-        it "should set the Content-Length header" do
-          @response.expects(:[]=).with("Content-Length", 100)
+        it "should set the Content-Length header as a string" do
+          @response.expects(:[]=).with("Content-Length", '100')
 
           @handler.set_response(@response, @file, 200)
         end
@@ -246,4 +246,4 @@ describe Puppet::Network::HTTP::RackREST::RackFile do
     @file.expects(:close)
     @rackfile.close
   end
-end
\ No newline at end of file
+end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list