Commit a916936f authored by Douwe Maan's avatar Douwe Maan

Fix spec.

parent 156c43c0
...@@ -107,16 +107,25 @@ shared_examples 'an editable mentionable' do ...@@ -107,16 +107,25 @@ shared_examples 'an editable mentionable' do
it 'creates new cross-reference notes when the mentionable text is edited' do it 'creates new cross-reference notes when the mentionable text is edited' do
subject.save subject.save
new_text = <<-MSG new_text = <<-MSG.strip_heredoc
These references already existed: These references already existed:
Issue: #{mentioned_issue.to_reference} Issue: #{mentioned_issue.to_reference}
Commit: #{mentioned_commit.to_reference} Commit: #{mentioned_commit.to_reference}
---
This cross-project reference already existed: This cross-project reference already existed:
Issue: #{ext_issue.to_reference(project)} Issue: #{ext_issue.to_reference(project)}
---
These two references are introduced in an edit: These two references are introduced in an edit:
Issue: #{new_issues[0].to_reference} Issue: #{new_issues[0].to_reference}
Cross: #{new_issues[1].to_reference(project)} Cross: #{new_issues[1].to_reference(project)}
MSG MSG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment