Permalink
Browse files

Merge pull request #125 from alphagov/dont-use-read-only-field-in-zen…

…desk-ticket-creation

Don't use a read-only field in Zd ticket creation
  • Loading branch information...
2 parents c700874 + 2faf72f commit 0c1660cba7b40636867dd29865ca0988d4af20e6 @alext alext committed Jan 14, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 features/step_definitions/zendesk_steps.rb
  2. +1 −1 lib/zendesk_tickets.rb
@@ -22,7 +22,7 @@
end
Then /^the description on the ticket is:$/ do |expected_comment_string|
- assert_created_ticket_has(description: expected_comment_string)
+ assert_created_ticket_has(comment: expected_comment_string)
end
Then /^the time constraints on the ticket are:$/ do |ticket_properties_table|
View
@@ -10,6 +10,6 @@ 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,
- :description => ticket_to_raise.comment})
+ :comment => ticket_to_raise.comment})
end
end

0 comments on commit 0c1660c

Please sign in to comment.