summaryrefslogtreecommitdiffstats
path: root/test/functional/email_addresses_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/email_addresses_controller_test.rb')
-rw-r--r--test/functional/email_addresses_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index 5984cf886..7242bb294 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -172,8 +172,8 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
assert_select 'a[href^=?]', 'http://localhost:3000/my/account', :text => 'My account'
end
# The old email address should be notified about a new address for security purposes
- assert [mail.bcc, mail.cc].flatten.include?(User.find(2).mail)
- assert [mail.bcc, mail.cc].flatten.include?('something@example.fr')
+ assert mail.to.include?(User.find(2).mail)
+ assert mail.to.include?('something@example.fr')
end
def test_update
@@ -230,7 +230,7 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
assert_mail_body_match I18n.t(:mail_body_security_notification_notify_disabled, value: 'another@somenet.foo'), mail
# The changed address should be notified for security purposes
- assert [mail.bcc, mail.cc].flatten.include?('another@somenet.foo')
+ assert mail.to.include?('another@somenet.foo')
end
def test_destroy
@@ -300,6 +300,6 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
assert_mail_body_match I18n.t(:mail_body_security_notification_remove, field: I18n.t(:field_mail), value: 'another@somenet.foo'), mail
# The removed address should be notified for security purposes
- assert [mail.bcc, mail.cc].flatten.include?('another@somenet.foo')
+ assert mail.to.include?('another@somenet.foo')
end
end