Commit 83f01ab5 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Test #issues_sentence with JiraIssues

parent 978162bb
...@@ -8,5 +8,13 @@ describe MergeRequestsHelper do ...@@ -8,5 +8,13 @@ describe MergeRequestsHelper do
end end
it { should eq('#1, #2, and #3') } it { should eq('#1, #2, and #3') }
context 'for JIRA issues' do
let(:issues) do
[JiraIssue.new('JIRA-123'), JiraIssue.new('JIRA-456'), JiraIssue.new('FOOBAR-7890')]
end
it { should eq('#JIRA-123, #JIRA-456, and #FOOBAR-7890') }
end
end end
end end
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