summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/functional/http.rb')
-rw-r--r--spec/support/shared/functional/http.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/support/shared/functional/http.rb b/spec/support/shared/functional/http.rb
index 2779730268..71b9578ca9 100644
--- a/spec/support/shared/functional/http.rb
+++ b/spec/support/shared/functional/http.rb
@@ -37,7 +37,7 @@ module ChefHTTPShared
content
end
- def start_tiny_server(server_opts={})
+ def start_tiny_server(server_opts = {})
nyan_uncompressed_size = File::Stat.new(nyan_uncompressed_filename).size
nyan_compressed_size = File::Stat.new(nyan_compressed_filename).size
@@ -162,18 +162,15 @@ module ChefHTTPShared
#
@api.get("/bad_request", 400, '{ "error": [ "Your request is just terrible." ] }')
@api.post("/bad_request", 400, '{ "error": [ "Your request is just terrible." ] }')
-
end
def stop_tiny_server
@server.stop
@server = @api = nil
end
-
end
shared_examples_for "downloading all the things" do
-
describe "when downloading a simple uncompressed file" do
let(:source) { "http://localhost:9000/nyan_cat.png" }
let(:expected_content) { binread(nyan_uncompressed_filename) }