summaryrefslogtreecommitdiff
path: root/spec/unit/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
commitf073747786abbe6ada55ed24b696a03e39c3c45d (patch)
tree7971d871e89d522a58291713761a6c83f68e8d19 /spec/unit/http
parentc6e69783705cfd48bfea0c943dc071964dd21311 (diff)
downloadchef-f073747786abbe6ada55ed24b696a03e39c3c45d.tar.gz
auto fixing some rubocops
Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
Diffstat (limited to 'spec/unit/http')
-rw-r--r--spec/unit/http/validate_content_length_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/http/validate_content_length_spec.rb b/spec/unit/http/validate_content_length_spec.rb
index c054529e48..3e129dc646 100644
--- a/spec/unit/http/validate_content_length_spec.rb
+++ b/spec/unit/http/validate_content_length_spec.rb
@@ -107,7 +107,7 @@ describe Chef::HTTP::ValidateContentLength do
describe "without Content-Length header" do
let(:response_headers) { {} }
- [ "direct", "streaming" ].each do |req_type|
+ %w(direct streaming).each do |req_type|
describe "when running #{req_type} request" do
let(:request_type) { req_type.to_sym }
@@ -120,7 +120,7 @@ describe Chef::HTTP::ValidateContentLength do
end
describe "with correct Content-Length header" do
- [ "direct", "streaming" ].each do |req_type|
+ %w(direct streaming).each do |req_type|
describe "when running #{req_type} request" do
let(:request_type) { req_type.to_sym }
@@ -134,7 +134,7 @@ describe Chef::HTTP::ValidateContentLength do
describe "with wrong Content-Length header" do
let(:content_length_value) { 25 }
- [ "direct", "streaming" ].each do |req_type|
+ %w(direct streaming).each do |req_type|
describe "when running #{req_type} request" do
let(:request_type) { req_type.to_sym }
@@ -161,7 +161,7 @@ describe Chef::HTTP::ValidateContentLength do
}
}
- [ "direct", "streaming" ].each do |req_type|
+ %w(direct streaming).each do |req_type|
describe "when running #{req_type} request" do
let(:request_type) { req_type.to_sym }