Skip to content

Commit

Permalink
Disable Lint/ConstantDefinitionInBlock in spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Jun 5, 2021
1 parent 0895eab commit 7903524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# elasticsearch-dsl warnings are killing me - solnic
config.warnings = false

# rubocop:disable Lint/ConstantDefinitionInBlock
config.before do
module Test
end
Expand All @@ -26,4 +27,5 @@ module Test
config.after do
Object.send(:remove_const, :Test)
end
# rubocop:enable Lint/ConstantDefinitionInBlock
end

0 comments on commit 7903524

Please sign in to comment.