diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
commit | f073747786abbe6ada55ed24b696a03e39c3c45d (patch) | |
tree | 7971d871e89d522a58291713761a6c83f68e8d19 /spec/unit/http | |
parent | c6e69783705cfd48bfea0c943dc071964dd21311 (diff) | |
download | chef-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.rb | 8 |
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 } |