Add test for jira_issue_transition_id

parent 53d5024b
...@@ -55,5 +55,13 @@ describe JiraService, models: true do ...@@ -55,5 +55,13 @@ describe JiraService, models: true do
body: /Issue solved with/ body: /Issue solved with/
).once ).once
end end
it "calls the api with jira_issue_transition_id" do
@jira_service.jira_issue_transition_id = 'this-is-a-custom-id'
@jira_service.execute(@sample_data, JiraIssue.new("JIRA-123"))
WebMock.should have_requested(:post, @api_url).with(
body: /this-is-a-custom-id/
).once
end
end end
end end
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