summaryrefslogtreecommitdiffstats
path: root/spec/unit/network/http
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-08-06 10:34:31 -0700
committerMarkus Roberts <Markus@reality.com>2010-08-06 10:34:31 -0700
commit8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7 (patch)
tree2c78625a16cd7e6672dadca3d8fb74b8f0ac1ea0 /spec/unit/network/http
parentf43e87bb638b30608e1773a9afb48a8639feb3cd (diff)
downloadpuppet-8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7.tar.gz
puppet-8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7.tar.xz
puppet-8ddea2afba170a3d3e1e2917a049dfa01ad3d8a7.zip
Maint. Passenger fix broke a test
The content-length fix for passenger broke a test; this fixes it.
Diffstat (limited to 'spec/unit/network/http')
-rwxr-xr-xspec/unit/network/http/rack/rest_spec.rb6
1 files changed, 3 insertions, 3 deletions
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