summaryrefslogtreecommitdiff
path: root/spec/policies/identity_provider_policy_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 00:08:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 00:08:52 +0000
commit38c1da5195bdcaab0b20bf6303a675b9283ac476 (patch)
tree0619c87e942aa03fb6e1c050daabe961f8d01e0a /spec/policies/identity_provider_policy_spec.rb
parentab5672c13d7fe5c79fdeac10e7505187cf4ba606 (diff)
downloadgitlab-ce-38c1da5195bdcaab0b20bf6303a675b9283ac476.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/identity_provider_policy_spec.rb')
-rw-r--r--spec/policies/identity_provider_policy_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/policies/identity_provider_policy_spec.rb b/spec/policies/identity_provider_policy_spec.rb
index f6b4e15cff9..cd617a28364 100644
--- a/spec/policies/identity_provider_policy_spec.rb
+++ b/spec/policies/identity_provider_policy_spec.rb
@@ -19,13 +19,11 @@ RSpec.describe IdentityProviderPolicy do
it { is_expected.not_to be_allowed(:unlink) }
end
- %w[saml cas3].each do |provider_name|
- context "when provider is #{provider_name}" do
- let(:provider) { provider_name }
+ context "when provider is saml" do
+ let(:provider) { 'saml' }
- it { is_expected.to be_allowed(:link) }
- it { is_expected.not_to be_allowed(:unlink) }
- end
+ it { is_expected.to be_allowed(:link) }
+ it { is_expected.not_to be_allowed(:unlink) }
end
end
end