`stub_licensed_features` does not work for groups due to memoization
Summary
Calls to stub_licensed_features
sometimes don't work when testing group-level features.
The current workaround
Currently, this can be fixed by creating the group using let_it_be_with_refind
instead of let_it_be
.
Background
This issue is very similar to #10385 (closed). To resolve this issue, !54215 (merged) automatically patched Project#licensed_feature_available?
in specs, so it was no longer necessary to use let_it_be_with_refind
with projects.
Proposal
Do the same thing as !54215 (merged) but for groups: patch Group#licensed_feature_available?
in specs.