Add organization context to workspace RSpec tests
Summary
As part of the Organizations Feature Parity self-assessment (Q6.2), the following workspace specs do not explicitly create data within an organization context per the testing guidelines:
ee/spec/models/remote_development/workspace_spec.rbee/spec/finders/remote_development/workspaces_finder_spec.rbee/spec/policies/remote_development/workspace_policy_spec.rb
What needs to change
These specs should be updated to follow the pattern already established in the integration spec, where organization context is explicitly created and associated with test data:
-
ee/spec/requests/remote_development/integration_spec.rb#L40:let(:common_organization) { common_parent_namespace.organization }
References
Edited by 🤖 GitLab Bot 🤖