diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-09 14:11:52 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-09 14:11:52 +0300 |
commit | e80df8f234a26271c77358c36662b957b23cbcaf (patch) | |
tree | 5de3b5e824a74fe517b579853485773033639e35 /spec | |
parent | 95138a9c16a2d1905354d0f46381b3822b37863d (diff) | |
parent | 4bfd06e60e22a8100eddc2391d4842a8b6e53a6f (diff) |
Merge branch '33381-display-issue-state-in-mr-widget-issue-links' into 'master'
Display issue state in issue links section of merge request widget
Closes #33381
See merge request !12021
Diffstat (limited to 'spec')
-rw-r--r-- | spec/presenters/merge_request_presenter_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/presenters/merge_request_presenter_spec.rb b/spec/presenters/merge_request_presenter_spec.rb index 44720fc4448..f5a14b1d04d 100644 --- a/spec/presenters/merge_request_presenter_spec.rb +++ b/spec/presenters/merge_request_presenter_spec.rb @@ -132,6 +132,11 @@ describe MergeRequestPresenter do it 'does not present related issues links' do is_expected.not_to match("#{project.full_path}/issues/#{issue_b.iid}") end + + it 'appends status when closing issue is already closed' do + issue_a.close + is_expected.to match('(closed)') + end end describe '#mentioned_issues_links' do @@ -147,6 +152,11 @@ describe MergeRequestPresenter do it 'does not present closing issues links' do is_expected.not_to match("#{project.full_path}/issues/#{issue_a.iid}") end + + it 'appends status when mentioned issue is already closed' do + issue_b.close + is_expected.to match('(closed)') + end end describe '#assign_to_closing_issues_link' do |