summaryrefslogtreecommitdiff
path: root/spec/unit/rest_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 18:42:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 18:42:40 -0800
commite42e6fe2d0c971882451d27c986b9930de7d2ffe (patch)
treec52bf04ecf3d870298a05a30dfe05d2d3c8335d3 /spec/unit/rest_spec.rb
parent647d75df3caa7172754d9dfc2f9fe767aeb91857 (diff)
downloadchef-e42e6fe2d0c971882451d27c986b9930de7d2ffe.tar.gz
remove some more deprecation warnings
Diffstat (limited to 'spec/unit/rest_spec.rb')
-rw-r--r--spec/unit/rest_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/rest_spec.rb b/spec/unit/rest_spec.rb
index 86e447a66f..a53b4c9507 100644
--- a/spec/unit/rest_spec.rb
+++ b/spec/unit/rest_spec.rb
@@ -578,13 +578,13 @@ describe Chef::REST do
it "does not raise a divide by zero exception if the content's actual size is 0" do
http_response['Content-Length'] = "5"
http_response.stub(:read_body).and_yield('')
- expect { rest.streaming_request(url, {}) }.to_not raise_error(ZeroDivisionError)
+ expect { rest.streaming_request(url, {}) }.to raise_error(Chef::Exceptions::ContentLengthMismatch)
end
it "does not raise a divide by zero exception when the Content-Length is 0" do
http_response['Content-Length'] = "0"
http_response.stub(:read_body).and_yield("ninja")
- expect { rest.streaming_request(url, {}) }.to_not raise_error(ZeroDivisionError)
+ expect { rest.streaming_request(url, {}) }.to raise_error(Chef::Exceptions::ContentLengthMismatch)
end
it "it raises an exception when the download is truncated" do