From ff0b2cc61fff18186572084790bb0a054090b917 Mon Sep 17 00:00:00 2001 From: Andrew Newdigate Date: Thu, 24 Jan 2019 15:43:02 +0200 Subject: Re-enable MethodCallWithoutArgsParentheses Cop Re-enables and autocorrects all instances of the Style/MethodCallWithoutArgsParentheses rule --- qa/spec/page/logging_spec.rb | 2 +- qa/spec/support/stub_env.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'qa') diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb index 2666dd3b03b..f289ee3c2bb 100644 --- a/qa/spec/page/logging_spec.rb +++ b/qa/spec/page/logging_spec.rb @@ -6,7 +6,7 @@ require 'logger' describe QA::Support::Page::Logging do include Support::StubENV - let(:page) { double().as_null_object } + let(:page) { double.as_null_object } before do logger = ::Logger.new $stdout 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 -- cgit v1.2.1