Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 16:19:23 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-24 13:30:36 +0300
commit0ff778c0f4a3b599d0f36a1deee5607d03e52b9a (patch)
treead89737763ed27faedec8e28ac338a4b1fb94b34 /spec/support/mentionable_shared_examples.rb
parent27af24c1c951385bccd298c98044d57ff22ccd1c (diff)
Link cross-project cross-reference notes to correct project.
Diffstat (limited to 'spec/support/mentionable_shared_examples.rb')
-rw-r--r--spec/support/mentionable_shared_examples.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb
index 25ec5cbe6f2..dde80b1e1dd 100644
--- a/spec/support/mentionable_shared_examples.rb
+++ b/spec/support/mentionable_shared_examples.rb
@@ -83,14 +83,14 @@ shared_examples 'a mentionable' do
mentioned_objects.each do |referenced|
expect(Note).to receive(:create_cross_reference_note).
- with(referenced, subject.local_reference, author, project)
+ with(referenced, subject.local_reference, author)
end
subject.create_cross_references!(project, author)
end
it 'detects existing cross-references' do
- Note.create_cross_reference_note(mentioned_issue, subject.local_reference, author, project)
+ Note.create_cross_reference_note(mentioned_issue, subject.local_reference, author)
expect(subject).to have_mentioned(mentioned_issue)
expect(subject).not_to have_mentioned(mentioned_mr)
@@ -132,7 +132,7 @@ shared_examples 'an editable mentionable' do
# These two issues are new and should receive reference notes
new_issues.each do |newref|
expect(Note).to receive(:create_cross_reference_note).
- with(newref, subject.local_reference, author, project)
+ with(newref, subject.local_reference, author)
end
subject.save