Skip to content

Use `let_it_be_with_refind` to fix failing specs

Abdul Wadood requested to merge 444703-fix-quarantined-spec into master

What does this MR do and why?

Use let_it_be_with_refind to fix failing specs

This fixes the specs as the creation of associated objects in let blocks were causing shared state leaks.

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 this on the master and on this branch. It should pass on this branch and fail on master:

bundle exec rspec ee/spec/models/ee/project_spec.rb:1892

Related to #444703 (closed)

Merge request reports