summaryrefslogtreecommitdiff
path: root/spec/policies/namespaces/project_namespace_policy_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/policies/namespaces/project_namespace_policy_spec.rb')
-rw-r--r--spec/policies/namespaces/project_namespace_policy_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/policies/namespaces/project_namespace_policy_spec.rb b/spec/policies/namespaces/project_namespace_policy_spec.rb
index f6fe4ae552a..f1022747fab 100644
--- a/spec/policies/namespaces/project_namespace_policy_spec.rb
+++ b/spec/policies/namespaces/project_namespace_policy_spec.rb
@@ -28,7 +28,7 @@ RSpec.describe Namespaces::ProjectNamespacePolicy do
end
context 'parent owner' do
- let_it_be(:current_user) { parent.owner }
+ let_it_be(:current_user) { parent.first_owner }
it { is_expected.to be_disallowed(*permissions) }
end