summaryrefslogtreecommitdiff
path: root/spec/models/concerns
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 17:39:50 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 20:55:59 -0300
commit43d8bdb4f048cbeb5675ed9120cb1aeb415b9586 (patch)
treef773a103dd7da08866c813e19567c5055e137e9f /spec/models/concerns
parent34ee75379cf8e6459b8926fbf956a8316f87eea7 (diff)
downloadgitlab-ce-43d8bdb4f048cbeb5675ed9120cb1aeb415b9586.tar.gz
Restrict access to references for confidential issues
Diffstat (limited to 'spec/models/concerns')
-rw-r--r--spec/models/concerns/mentionable_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/concerns/mentionable_spec.rb b/spec/models/concerns/mentionable_spec.rb
index 20f0c561e44..cb33edde820 100644
--- a/spec/models/concerns/mentionable_spec.rb
+++ b/spec/models/concerns/mentionable_spec.rb
@@ -48,7 +48,8 @@ describe Issue, "Mentionable" do
describe '#create_new_cross_references!' do
let(:project) { create(:project) }
- let(:issues) { create_list(:issue, 2, project: project) }
+ let(:author) { create(:author) }
+ let(:issues) { create_list(:issue, 2, project: project, author: author) }
context 'before changes are persisted' do
it 'ignores pre-existing references' do
@@ -91,7 +92,7 @@ describe Issue, "Mentionable" do
end
def create_issue(description:)
- create(:issue, project: project, description: description)
+ create(:issue, project: project, description: description, author: author)
end
end
end