diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-01-15 13:07:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-01-15 13:07:58 -0800 |
commit | 990974ca5cd44df0c77bb6a12fc57a3c32b92e23 (patch) | |
tree | 5779719f58254764e57eb9cacde85837295fd2f6 /spec/support | |
parent | 4be1ebe66460efb0535e500d6ecb52a147346519 (diff) | |
download | chef-990974ca5cd44df0c77bb6a12fc57a3c32b92e23.tar.gz |
changes for rubocop engine upgrades.lcg/rubocop-upgrades
this is the result of changes to rules we already previously had
enabled.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/platforms/prof/gc.rb | 2 | ||||
-rw-r--r-- | spec/support/shared/functional/http.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/support/platforms/prof/gc.rb b/spec/support/platforms/prof/gc.rb index b494ff9646..9690e76032 100644 --- a/spec/support/platforms/prof/gc.rb +++ b/spec/support/platforms/prof/gc.rb @@ -24,7 +24,7 @@ module RSpec # GC 1 invokes. # Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC time(ms) # 1 0.012 159240 212940 10647 0.00000000000001530000 - LINE_PATTERN = /^\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)$/ + LINE_PATTERN = /^\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)\s+([\d\.]*)$/.freeze def start ::GC::Profiler.enable unless ::GC::Profiler.enabled? diff --git a/spec/support/shared/functional/http.rb b/spec/support/shared/functional/http.rb index 76faaaed47..7450f28e35 100644 --- a/spec/support/shared/functional/http.rb +++ b/spec/support/shared/functional/http.rb @@ -92,8 +92,8 @@ module ChefHTTPShared # (expected_content should be uncompressed) @api.get("/nyan_cat_content_length_compressed.png", 200, nil, { - "Content-Length" => nyan_compressed_size.to_s, - "Content-Type" => "application/gzip", + "Content-Length" => nyan_compressed_size.to_s, + "Content-Type" => "application/gzip", "Content-Encoding" => "gzip", } ) do @@ -120,8 +120,8 @@ module ChefHTTPShared # (expected_content should be uncompressed) @api.get("/nyan_cat_truncated_compressed.png", 200, nil, { - "Content-Length" => (nyan_compressed_size + 1).to_s, - "Content-Type" => "application/gzip", + "Content-Length" => (nyan_compressed_size + 1).to_s, + "Content-Type" => "application/gzip", "Content-Encoding" => "gzip", } ) do @@ -137,7 +137,7 @@ module ChefHTTPShared # (expected_content should be uncompressed) @api.get("/nyan_cat_transfer_encoding.png", 200, nil, { - "Content-Length" => (nyan_uncompressed_size + 1).to_s, + "Content-Length" => (nyan_uncompressed_size + 1).to_s, "Transfer-Encoding" => "anything", } ) do |