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