summaryrefslogtreecommitdiff
path: root/spec/services/notes
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-12-14 19:39:53 -0200
committerFelipe Artur <felipefac@gmail.com>2016-12-27 19:25:17 -0200
commit1b082a4c338d7575e15d7450906801db59873441 (patch)
tree1b5081ce55b63436082b038f499a8c54172fc75a /spec/services/notes
parent77deeb12f74b857f9356168ccdf92612fc85fe84 (diff)
downloadgitlab-ce-1b082a4c338d7575e15d7450906801db59873441.tar.gz
Check if user can read issue before being assignedissue_22664
Diffstat (limited to 'spec/services/notes')
-rw-r--r--spec/services/notes/slash_commands_service_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/notes/slash_commands_service_spec.rb b/spec/services/notes/slash_commands_service_spec.rb
index d1099884a02..960b5cd5e6f 100644
--- a/spec/services/notes/slash_commands_service_spec.rb
+++ b/spec/services/notes/slash_commands_service_spec.rb
@@ -5,6 +5,8 @@ describe Notes::SlashCommandsService, services: true do
let(:project) { create(:empty_project) }
let(:master) { create(:user).tap { |u| project.team << [u, :master] } }
let(:assignee) { create(:user) }
+
+ before { project.team << [assignee, :master] }
end
shared_examples 'note on noteable that does not support slash commands' do