Feed a JiraIssue to JiraService in its spec

This commit is contained in:
Jacob Vosmaer
2014-06-13 15:40:32 +02:00
parent 873127d6d0
commit 68048e3009
+1 -1
View File
@@ -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