summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-01-30 10:02:38 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-01-30 10:02:38 +0000
commit6fc5495703f2e9674cdda40826340be4a61047b6 (patch)
treeb8cd1a2a207a9e43590f456eb3ffa9573cb385f7 /qa
parent59e69a56c59e9f528c8a172dea64d2b433b6056a (diff)
parentff0b2cc61fff18186572084790bb0a054090b917 (diff)
downloadgitlab-ce-6fc5495703f2e9674cdda40826340be4a61047b6.tar.gz
Merge branch 'anan-add-MethodCallWithoutArgsParentheses-cop' into 'master'
Re-enable MethodCallWithoutArgsParentheses Cop Closes #56795 See merge request gitlab-org/gitlab-ce!24631
Diffstat (limited to 'qa')
-rw-r--r--qa/spec/page/logging_spec.rb2
-rw-r--r--qa/spec/support/stub_env.rb2
2 files changed, 2 insertions, 2 deletions
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