diff options
author | Go MAEDA <maeda@farend.jp> | 2020-11-04 07:49:42 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-11-04 07:49:42 +0000 |
commit | bfdedec0da0379643d90622622428c712cfee90f (patch) | |
tree | 3686bbf028a0be428a9bdcf5ac5f3824b1d1563d /test | |
parent | a53ac863cef6ef92f9fb30927103e74b95519db0 (diff) | |
download | redmine-bfdedec0da0379643d90622622428c712cfee90f.tar.gz redmine-bfdedec0da0379643d90622622428c712cfee90f.zip |
MessagesControllerTest#test_post_new randomly fails (#34169).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20242 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/messages_controller_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index ba28e538e..f5a40a1d7 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -146,10 +146,11 @@ class MessagesControllerTest < Redmine::ControllerTest assert_mail_body_match 'Message body', mail end + bcc_email_addresses = mails.map(&:bcc).flatten # author - assert_equal ['jsmith@somenet.foo'], mails[0].bcc + assert_includes bcc_email_addresses, 'jsmith@somenet.foo' # project member - assert_equal ['dlopper@somenet.foo'], mails[1].bcc + assert_includes bcc_email_addresses, 'dlopper@somenet.foo' end def test_get_edit |