From dcc44feb81333e1743248850c22df6314c28decd Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 31 Oct 2017 22:30:15 +0100 Subject: [PATCH] Improved test. --- test/unit/email_process_identify_sender_max_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/email_process_identify_sender_max_test.rb b/test/unit/email_process_identify_sender_max_test.rb index 154cabf62..81d0d316b 100644 --- a/test/unit/email_process_identify_sender_max_test.rb +++ b/test/unit/email_process_identify_sender_max_test.rb @@ -5,7 +5,7 @@ class EmailProcessIdentifySenderMax < ActiveSupport::TestCase test 'text max created recipients per email' do current_users = User.count - email_raw_string = "From: customer@example.com + email_raw_string = "From: #{generate_recipient(1)} To: #{generate_recipient(22)} Cc: #{generate_recipient(22)} Subject: test max sender identify @@ -15,8 +15,7 @@ Some Text" ticket_p, article_p, user_p, mail = Channel::EmailParser.new.process({}, email_raw_string) ticket = Ticket.find(ticket_p.id) assert_equal('test max sender identify', ticket.title) - - assert_equal(current_users + 40, User.count) + assert_equal(current_users + 41, User.count) end def generate_recipient(count)