diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-25 00:10:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-25 00:10:17 +0300 |
commit | 39a4ea6124066f2209829899e6c1afe247304c91 (patch) | |
tree | a6a337abe741974ab90c8fb07787ef1e69f63108 /spec/policies/issuable_policy_spec.rb | |
parent | 9b14160725d91f8824b35223f16bf073a97bf7de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/issuable_policy_spec.rb')
-rw-r--r-- | spec/policies/issuable_policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/policies/issuable_policy_spec.rb b/spec/policies/issuable_policy_spec.rb index 20eb09e11c9..86b04ccda57 100644 --- a/spec/policies/issuable_policy_spec.rb +++ b/spec/policies/issuable_policy_spec.rb @@ -40,8 +40,8 @@ RSpec.describe IssuablePolicy, models: true do let(:issue) { create(:issue, project: project, discussion_locked: true) } context 'when the user is not a project member' do - it 'can not create a note' do - expect(policies).to be_disallowed(:create_note) + it 'can not create a note nor award emojis' do + expect(policies).to be_disallowed(:create_note, :award_emoji) end end @@ -50,8 +50,8 @@ RSpec.describe IssuablePolicy, models: true do project.add_guest(user) end - it 'can create a note' do - expect(policies).to be_allowed(:create_note) + it 'can create a note and award emojis' do + expect(policies).to be_allowed(:create_note, :award_emoji) end end end |