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.rb
  • ee/spec/finders/remote_development/workspaces_finder_spec.rb
  • ee/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

  • Self-assessment: https://gitlab.com/gitlab-com/gl-infra/tenant-scale/organizations/organizations-feature-parity/-/work_items/13+
Edited Mar 04, 2026 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading