summaryrefslogtreecommitdiff
path: root/spec/unit/rest_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-10-08 13:04:52 -0700
committerdanielsdeleo <dan@opscode.com>2013-10-08 15:01:48 -0700
commit63f02a3c75d81003e8a4295f1403e13f91a97a7b (patch)
tree01172245a79d516699880be3f99fe703108f7037 /spec/unit/rest_spec.rb
parent1ed247de7476eb4e423af97f018a1666fc27f80d (diff)
downloadchef-63f02a3c75d81003e8a4295f1403e13f91a97a7b.tar.gz
Move streaming requests to generic HTTP class
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 c25c8233b1..073ff691d6 100644
--- a/spec/unit/rest_spec.rb
+++ b/spec/unit/rest_spec.rb
@@ -183,7 +183,7 @@ describe Chef::REST do
end
it "should build a new HTTP GET request without the application/json accept header" do
- expected_headers = {'X-Chef-Version' => Chef::VERSION, 'Accept-Encoding' => Chef::REST::RESTRequest::ENCODING_GZIP_DEFLATE}
+ expected_headers = {'Accept' => "*/*", 'X-Chef-Version' => Chef::VERSION, 'Accept-Encoding' => Chef::REST::RESTRequest::ENCODING_GZIP_DEFLATE}
Net::HTTP::Get.should_receive(:new).with("/?foo=bar", expected_headers).and_return(@request_mock)
@rest.streaming_request(@url, {})
end
@@ -428,7 +428,7 @@ describe Chef::REST do
end
it " build a new HTTP GET request without the application/json accept header" do
- expected_headers = {'X-Chef-Version' => Chef::VERSION, 'Accept-Encoding' => Chef::REST::RESTRequest::ENCODING_GZIP_DEFLATE}
+ expected_headers = {'Accept' => "*/*", 'X-Chef-Version' => Chef::VERSION, 'Accept-Encoding' => Chef::REST::RESTRequest::ENCODING_GZIP_DEFLATE}
Net::HTTP::Get.should_receive(:new).with("/?foo=bar", expected_headers).and_return(@request_mock)
@rest.streaming_request(@url, {})
end