From 79035244a69d27988906c5fa6af1052ab4275175 Mon Sep 17 00:00:00 2001 From: Piotr Solnica Date: Sat, 5 Jun 2021 11:08:27 +0200 Subject: [PATCH] Disable Lint/ConstantDefinitionInBlock in spec_helper --- spec/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4a17232..7c68852 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -18,6 +18,7 @@ # elasticsearch-dsl warnings are killing me - solnic config.warnings = false + # rubocop:disable Lint/ConstantDefinitionInBlock config.before do module Test end @@ -26,4 +27,5 @@ module Test config.after do Object.send(:remove_const, :Test) end + # rubocop:enable Lint/ConstantDefinitionInBlock end