summaryrefslogtreecommitdiff
path: root/spec/unit/network/http/compression_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/network/http/compression_spec.rb')
-rwxr-xr-xspec/unit/network/http/compression_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/network/http/compression_spec.rb b/spec/unit/network/http/compression_spec.rb
index 9dbf4228c..9fa37dd01 100755
--- a/spec/unit/network/http/compression_spec.rb
+++ b/spec/unit/network/http/compression_spec.rb
@@ -61,9 +61,9 @@ describe "http compression" do
headers['accept-encoding'].should =~ /identity/
end
- it "should not add Accept-Encoding header if http compression is not available" do
+ it "should add an Accept-Encoding 'identity' header if http compression is disabled" do
Puppet[:http_compression] = false
- @uncompressor.add_accept_encoding({}).should == {}
+ @uncompressor.add_accept_encoding({}).should == {'accept-encoding' => 'identity'}
end
describe "when uncompressing response body" do