Use real memberships in the work item authorization helper spec

What does this MR do and why?

Follow-up to !265474 (merged). The #authorize_work_item_feature! unit spec stubbed can? in its allowed and denied contexts, so it never exercised the real :read_work_item policy. This swaps the stubs for a guest membership and a real non-member on the factory's private project.

No changelog: spec-only change behind the work_item_rest_api feature flag.

References

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

Merge request reports

Loading
Loading