Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #126 from alphagov/bugfix-for-zendesk-ticket-creation

bugfix: correct Zendesk ticket creation JSON
  • Loading branch information...
commit a6eeeec58099b954123ec12efcc7938bd86a88d0 2 parents 0c1660c + 47cab05
@fatbusinessman fatbusinessman authored
View
2  features/step_definitions/zendesk_steps.rb
@@ -22,7 +22,7 @@
end
Then /^the description on the ticket is:$/ do |expected_comment_string|
- assert_created_ticket_has(comment: expected_comment_string)
+ assert_created_ticket_has(comment: { body: expected_comment_string })
end
Then /^the time constraints on the ticket are:$/ do |ticket_properties_table|
View
3  lib/zendesk_tickets.rb
@@ -10,6 +10,7 @@ def raise_ticket(ticket_to_raise)
:fields => [{"id" => GDSZendesk::FIELD_MAPPINGS[:needed_by_date], "value" => ticket_to_raise.needed_by_date},
{"id" => GDSZendesk::FIELD_MAPPINGS[:not_before_date], "value" => ticket_to_raise.not_before_date}],
:tags => ticket_to_raise.tags,
- :comment => ticket_to_raise.comment})
+ :comment => { "body" => ticket_to_raise.comment }
+ })
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.