summaryrefslogtreecommitdiff
path: root/spec/models/project_services/jira_service_spec.rb
diff options
context:
space:
mode:
authorIlan Shamir <ilanshamir1@gmail.com>2016-06-14 23:43:31 +0300
committerIlan Shamir <ilanshamir1@gmail.com>2016-06-16 01:25:18 +0300
commit94135e6275a0c538ab0a5782c3f71152894efc2d (patch)
treea32add5aa45baace061551d8cfc8fe001fab6cc6 /spec/models/project_services/jira_service_spec.rb
parent400b4159742a7d32961d3efaa411f34d5e3117fa (diff)
downloadgitlab-ce-94135e6275a0c538ab0a5782c3f71152894efc2d.tar.gz
Remove JiraIssue model and replace references with ExternalIssue
Diffstat (limited to 'spec/models/project_services/jira_service_spec.rb')
-rw-r--r--spec/models/project_services/jira_service_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/project_services/jira_service_spec.rb b/spec/models/project_services/jira_service_spec.rb
index 5309cfb99ff..c9517324541 100644
--- a/spec/models/project_services/jira_service_spec.rb
+++ b/spec/models/project_services/jira_service_spec.rb
@@ -76,7 +76,8 @@ describe JiraService, models: true do
end
it "should call JIRA API" do
- @jira_service.execute(merge_request, JiraIssue.new("JIRA-123", project))
+ @jira_service.execute(merge_request,
+ ExternalIssue.new("JIRA-123", project))
expect(WebMock).to have_requested(:post, @comment_url).with(
body: /Issue solved with/
).once
@@ -84,7 +85,8 @@ describe JiraService, models: true do
it "calls the api with jira_issue_transition_id" do
@jira_service.jira_issue_transition_id = 'this-is-a-custom-id'
- @jira_service.execute(merge_request, JiraIssue.new("JIRA-123", project))
+ @jira_service.execute(merge_request,
+ ExternalIssue.new("JIRA-123", project))
expect(WebMock).to have_requested(:post, @api_url).with(
body: /this-is-a-custom-id/
).once