diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-08-29 21:36:35 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-08-31 23:15:30 +0300 |
commit | 3e4013f21760be5522ac080669b6da9fb9118999 (patch) | |
tree | 85a464a1edae7af86dc139b953fa5be13ac790a4 /spec/models/merge_request_spec.rb | |
parent | 2a8dec2c27726cd0af995de97e596eab78e6efbf (diff) |
Remove closing external issues by reference error
Diffstat (limited to 'spec/models/merge_request_spec.rb')
-rw-r--r-- | spec/models/merge_request_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index 92cf15a5a51..05cf9308127 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -159,6 +159,7 @@ describe MergeRequest do before do subject.project.has_external_issue_tracker = true subject.project.save! + create(:jira_service, project: subject.project) end it 'does not cache issues from external trackers' do @@ -166,6 +167,7 @@ describe MergeRequest do 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 expect { subject.cache_merge_request_closes_issues!(subject.author) }.not_to change(subject.merge_requests_closing_issues, :count) end |