diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2019-01-24 16:43:02 +0300 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2019-01-29 22:05:30 +0300 |
commit | ff0b2cc61fff18186572084790bb0a054090b917 (patch) | |
tree | 88e3afefb751249389afdb627a23ceb7f26bfc7a /qa/spec/support | |
parent | 96516f7ef32c16d8b85d4be3d8d0252f81341c99 (diff) |
Re-enable MethodCallWithoutArgsParentheses Cop
Re-enables and autocorrects all instances of the
Style/MethodCallWithoutArgsParentheses rule
Diffstat (limited to 'qa/spec/support')
-rw-r--r-- | qa/spec/support/stub_env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/spec/support/stub_env.rb b/qa/spec/support/stub_env.rb index 044804cd599..4788e0ab46c 100644 --- a/qa/spec/support/stub_env.rb +++ b/qa/spec/support/stub_env.rb @@ -19,7 +19,7 @@ module Support allow(ENV).to receive(:[]).with(key).and_return(value) allow(ENV).to receive(:key?).with(key).and_return(true) allow(ENV).to receive(:fetch).with(key).and_return(value) - allow(ENV).to receive(:fetch).with(key, anything()) do |_, default_val| + allow(ENV).to receive(:fetch).with(key, anything) do |_, default_val| value || default_val end end |