summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-11-05 12:18:26 +0100
committerMarin Jankovski <maxlazio@gmail.com>2014-11-05 12:18:26 +0100
commit5a8ec1f6712ea044500c015e55f7515007a8285e (patch)
tree8a72ae5cf92f38a85d965bcd942465e9b24b56fa /spec/models/note_spec.rb
parent42a1d8083c77d3803320bbbd0ac1559ff32d2519 (diff)
downloadgitlab-ce-5a8ec1f6712ea044500c015e55f7515007a8285e.tar.gz
Create a failing test where commit in mr creates a mr mention note.
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index 2d839e9611b..6ab7162c15c 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -249,6 +249,12 @@ describe Note do
its(:note) { should == "_mentioned in merge request !#{mergereq.iid}_" }
end
+ context 'commit contained in a merge request' do
+ subject { Note.create_cross_reference_note(mergereq.commits.first, mergereq, author, project) }
+
+ it { should be_nil }
+ end
+
context 'commit from issue' do
subject { Note.create_cross_reference_note(commit, issue, author, project) }