Commit 2ab1363c authored by Jacob Vosmaer's avatar Jacob Vosmaer

Test if JiraIssues make it through #issues_for

parent 68048e30
...@@ -124,6 +124,17 @@ describe MergeRequest do ...@@ -124,6 +124,17 @@ describe MergeRequest do
subject.closes_issues.should be_empty subject.closes_issues.should be_empty
end end
context 'for a project with JIRA integration' do
let(:issue0) { JiraIssue.new('JIRA-123') }
let(:issue1) { JiraIssue.new('FOOBAR-4567') }
it 'returns sorted JiraIssues' do
subject.project.stub(default_branch: subject.target_branch)
subject.closes_issues.should eq([issue1, issue0])
end
end
end end
it_behaves_like 'an editable mentionable' do it_behaves_like 'an editable mentionable' do
......
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