summaryrefslogtreecommitdiff
path: root/spec/unit/http/socketless_chef_zero_client_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/http/socketless_chef_zero_client_spec.rb')
-rw-r--r--spec/unit/http/socketless_chef_zero_client_spec.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/spec/unit/http/socketless_chef_zero_client_spec.rb b/spec/unit/http/socketless_chef_zero_client_spec.rb
index 4f3aed13c5..4bbc4f6768 100644
--- a/spec/unit/http/socketless_chef_zero_client_spec.rb
+++ b/spec/unit/http/socketless_chef_zero_client_spec.rb
@@ -38,13 +38,13 @@ describe Chef::HTTP::SocketlessChefZeroClient do
let(:expected_rack_req) do
{
- "SCRIPT_NAME" => "",
- "SERVER_NAME" => "localhost",
- "REQUEST_METHOD" => method.to_s.upcase,
- "PATH_INFO" => uri.path,
- "QUERY_STRING" => uri.query,
- "SERVER_PORT" => uri.port,
- "HTTP_HOST" => "localhost:#{uri.port}",
+ "SCRIPT_NAME" => "",
+ "SERVER_NAME" => "localhost",
+ "REQUEST_METHOD" => method.to_s.upcase,
+ "PATH_INFO" => uri.path,
+ "QUERY_STRING" => uri.query,
+ "SERVER_PORT" => uri.port,
+ "HTTP_HOST" => "localhost:#{uri.port}",
"rack.url_scheme" => "chefzero",
}
end
@@ -137,16 +137,16 @@ describe Chef::HTTP::SocketlessChefZeroClient do
let(:expected_rack_req) do
{
- "SCRIPT_NAME" => "",
- "SERVER_NAME" => "localhost",
- "REQUEST_METHOD" => method.to_s.upcase,
- "PATH_INFO" => uri.path,
- "QUERY_STRING" => uri.query,
- "SERVER_PORT" => uri.port,
- "HTTP_HOST" => "localhost:#{uri.port}",
+ "SCRIPT_NAME" => "",
+ "SERVER_NAME" => "localhost",
+ "REQUEST_METHOD" => method.to_s.upcase,
+ "PATH_INFO" => uri.path,
+ "QUERY_STRING" => uri.query,
+ "SERVER_PORT" => uri.port,
+ "HTTP_HOST" => "localhost:#{uri.port}",
"HTTP_X_OPS_SERVER_API_VERSION" => "2",
"rack.url_scheme" => "chefzero",
- "rack.input" => an_instance_of(StringIO),
+ "rack.input" => an_instance_of(StringIO),
}
end