Use `stub_const` to avoid disabling cop RSpec/LeakyConstantDeclaration
What does this MR do?
We can use stub_const
if we really need constants in specs but do not want to them to leak.
This MR also contains a unrelated change (separate commit) which fixes some revealed cop offenses.
Pro tip: Use export REVEAL_RUBOCOP_TODO=1
Contributes to #211580.
Does this MR meet the acceptance criteria?
Conformity
Edited by Peter Leitzen