Avoid fixture context leak breaking specs
What does this MR do and why?
Avoid fixture context leak breaking specs. The shared project & group being present at different states of the feature flag seems to give this spec a tendency to be flaky. (Locally it actually failed every time for me). Previous version ran fine in isolation consistently.
- Fixes: [Test] ee/spec/models/approval_project_rule_spe... (#470326 - closed) • Sam Figueroa • 17.3
- Refs: Quarantine a flaky test (!158174 - merged) • Unassigned • 17.2
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- run
rspec ./ee/spec/models/approval_project_rule_spec.rb
Edited by Sam Figueroa