Commit 68048e30 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Feed a JiraIssue to JiraService in its spec

parent 873127d6
......@@ -50,7 +50,7 @@ describe JiraService, models: true do
end
it "should call JIRA API" do
@jira_service.execute(@sample_data, "JIRA-123")
@jira_service.execute(@sample_data, JiraIssue.new("JIRA-123"))
WebMock.should have_requested(:post, @api_url).with(
body: /Issue solved with/
).once
......
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