summaryrefslogtreecommitdiff
path: root/spec/support/mentionable_shared_examples.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-16 16:34:01 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-16 16:34:01 -0400
commite01480a3afe24fc678ff401fc4b060ab05036bc7 (patch)
tree747847a31833aec05bbaba05469d465316f95c22 /spec/support/mentionable_shared_examples.rb
parent8c9a148720121506151ab9697e29b67dd4c11ed4 (diff)
downloadgitlab-ce-e01480a3afe24fc678ff401fc4b060ab05036bc7.tar.gz
Minor mentionable shared example change
Diffstat (limited to 'spec/support/mentionable_shared_examples.rb')
-rw-r--r--spec/support/mentionable_shared_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/mentionable_shared_examples.rb b/spec/support/mentionable_shared_examples.rb
index 5e6c695fc0e..25ec5cbe6f2 100644
--- a/spec/support/mentionable_shared_examples.rb
+++ b/spec/support/mentionable_shared_examples.rb
@@ -92,8 +92,8 @@ shared_examples 'a mentionable' do
it 'detects existing cross-references' do
Note.create_cross_reference_note(mentioned_issue, subject.local_reference, author, project)
- expect(subject.has_mentioned?(mentioned_issue)).to be_truthy
- expect(subject.has_mentioned?(mentioned_mr)).to be_falsey
+ expect(subject).to have_mentioned(mentioned_issue)
+ expect(subject).not_to have_mentioned(mentioned_mr)
end
end