From 8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Fri, 6 Aug 2010 10:34:31 -0700 Subject: Maint. Passenger fix broke a test The content-length fix for passenger broke a test; this fixes it. --- spec/unit/network/http/rack/rest_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/network/http') diff --git a/spec/unit/network/http/rack/rest_spec.rb b/spec/unit/network/http/rack/rest_spec.rb index 9b3e1e59f..96cf84c37 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 -- cgit