diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-10 00:08:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-10 00:08:52 +0000 |
commit | 38c1da5195bdcaab0b20bf6303a675b9283ac476 (patch) | |
tree | 0619c87e942aa03fb6e1c050daabe961f8d01e0a /spec/policies/identity_provider_policy_spec.rb | |
parent | ab5672c13d7fe5c79fdeac10e7505187cf4ba606 (diff) | |
download | gitlab-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.rb | 10 |
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 |