Skip to content

Commit

Permalink
Fix spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douwe Maan committed Jun 2, 2015
1 parent 156c43c commit a916936
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions spec/support/mentionable_shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,26 @@ def common_mentionable_setup
it 'creates new cross-reference notes when the mentionable text is edited' do
subject.save

new_text = <<-MSG
new_text = <<-MSG.strip_heredoc
These references already existed:
Issue: #{mentioned_issue.to_reference}
Commit: #{mentioned_commit.to_reference}
Issue: #{mentioned_issue.to_reference}
Commit: #{mentioned_commit.to_reference}
---
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:
Issue: #{new_issues[0].to_reference}
Cross: #{new_issues[1].to_reference(project)}
Issue: #{new_issues[0].to_reference}
Cross: #{new_issues[1].to_reference(project)}
MSG

# These three objects were already referenced, and should not receive new
Expand Down

0 comments on commit a916936

Please sign in to comment.