Просмотр исходного кода

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

Martin Edenhofer 8 лет назад
Родитель
Сommit
0c4bf9f5ca
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/controllers/tickets_controller_test.rb

+ 1 - 1
test/controllers/tickets_controller_test.rb

@@ -744,7 +744,7 @@ class TicketsControllerTest < ActionDispatch::IntegrationTest
     result = JSON.parse(@response.body)
     result = JSON.parse(@response.body)
     assert_equal(Hash, result.class)
     assert_equal(Hash, result.class)
     assert_equal(ticket.id, result['ticket_id'])
     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 subject', result['subject'])
     assert_equal('some body', result['body'])
     assert_equal('some body', result['body'])
     assert_equal('text/plain', result['content_type'])
     assert_equal('text/plain', result['content_type'])