Raise an error for flag stub typos
What does this MR do and why?
Ensure that test fail if the stubed feature flag name is not defined.
Work that supported this. Removed the offending stubs: #378182 (closed)
Steps to reproduce
- Find an existing spec with
stub_feature_flags
- Change the feature flag name to something invalid
- Run that spec
- Watch it fail
2) EE::Gitlab::Checks::PushRuleCheck#validate! :parallel_push_checks feature is disabled behaves like push checks raises an error on failure
Failure/Error: RSpec::Expectations.fail_with(e.message)
Invalid flag name: mola_mola
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Allison Browne