Fixed test, in case of web form, use also email in from to be able to reply.

This commit is contained in:
Martin Edenhofer 2016-10-06 19:34:35 +02:00
parent 36fd9d20b9
commit 0c4bf9f5ca

View file

@ -744,7 +744,7 @@ class TicketsControllerTest < ActionDispatch::IntegrationTest
result = JSON.parse(@response.body)
assert_equal(Hash, result.class)
assert_equal(ticket.id, result['ticket_id'])
assert_equal('Tickets Customer1', result['from'])
assert_equal('Tickets Customer1 <tickets-customer1@example.com>', result['from'])
assert_equal('some subject', result['subject'])
assert_equal('some body', result['body'])
assert_equal('text/plain', result['content_type'])