Fix flaky spec in transfer_service_spec
What does this MR do and why?
Fix flaky spec in transfer_service_spec
The spec was order dependent because we were creating associations with
group
. The problem has been fixed by using let_it_be_with_reload
.
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 the spec in this order on the master branch and this branch:
bundle exec rspec ./spec/services/groups/transfer_service_spec.rb[1:1:1:2:2:1:1,1:1:1:2:3:1]
Related to #444687 (closed)