diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-18 08:07:48 +0200 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-30 15:37:27 +0200 |
commit | ab8d54b26befb4b70988a514759c7c4d9fd7630d (patch) | |
tree | 973f4e83ef76468a00141006fbdc93152e33c028 /spec/models/project_services/jira_service_spec.rb | |
parent | 52a3d4372c6e45e4ffb792a9fe7bfca84f3573a3 (diff) | |
download | gitlab-ce-ab8d54b26befb4b70988a514759c7c4d9fd7630d.tar.gz |
Don’t create comment on JIRA if link already exists
Diffstat (limited to 'spec/models/project_services/jira_service_spec.rb')
-rw-r--r-- | spec/models/project_services/jira_service_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/project_services/jira_service_spec.rb b/spec/models/project_services/jira_service_spec.rb index 349067e73ab..1920b5bf42b 100644 --- a/spec/models/project_services/jira_service_spec.rb +++ b/spec/models/project_services/jira_service_spec.rb @@ -133,6 +133,7 @@ describe JiraService, models: true do allow(JIRA::Resource::Issue).to receive(:find).and_return(open_issue, closed_issue) allow_any_instance_of(JIRA::Resource::Issue).to receive(:key).and_return("JIRA-123") + allow(JIRA::Resource::Remotelink).to receive(:all).and_return([]) @jira_service.save |