diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-08 00:09:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-08 00:09:26 +0300 |
commit | 17c8111494f51e79744c782db023804f5e4a7410 (patch) | |
tree | 8aebe53b8aea72f9d4abac1bf9131203302a5b6e /spec/policies/alert_management | |
parent | 4b7575da97d88ef4c7b2ec599b0c3fc457b4f561 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/alert_management')
-rw-r--r-- | spec/policies/alert_management/alert_policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/policies/alert_management/alert_policy_spec.rb b/spec/policies/alert_management/alert_policy_spec.rb index 523464d8ff1..0d7624a0142 100644 --- a/spec/policies/alert_management/alert_policy_spec.rb +++ b/spec/policies/alert_management/alert_policy_spec.rb @@ -10,16 +10,16 @@ describe AlertManagement::AlertPolicy, :models do subject(:policy) { described_class.new(user, alert) } describe 'rules' do - it { is_expected.to be_disallowed :read_alert_management_alerts } - it { is_expected.to be_disallowed :update_alert_management_alerts } + it { is_expected.to be_disallowed :read_alert_management_alert } + it { is_expected.to be_disallowed :update_alert_management_alert } context 'when developer' do before do project.add_developer(user) end - it { is_expected.to be_allowed :read_alert_management_alerts } - it { is_expected.to be_allowed :update_alert_management_alerts } + it { is_expected.to be_allowed :read_alert_management_alert } + it { is_expected.to be_allowed :update_alert_management_alert } end end end |