Commit 1e213668 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce diff with CE in spec/models/merge_request_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent e722993d
......@@ -476,6 +476,7 @@ describe MergeRequest do
it 'does not cache issues from external trackers' do
issue = ExternalIssue.new('JIRA-123', subject.project)
commit = double('commit1', safe_message: "Fixes #{issue.to_reference}")
allow(subject).to receive(:commits).and_return([commit])
expect { subject.cache_merge_request_closes_issues!(subject.author) }.not_to raise_error
......
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