summaryrefslogtreecommitdiffstats
path: root/test/functional/email_addresses_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:44:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:44:18 +0000
commitbd63d3bc7163edd70c98056768b10c037a4041da (patch)
tree11eab3a26bfbcf3440280d7fe885e92cfd826866 /test/functional/email_addresses_controller_test.rb
parent91ea72e2b7ca0deae298146eadb65281753dfead (diff)
downloadredmine-bd63d3bc7163edd70c98056768b10c037a4041da.tar.gz
redmine-bd63d3bc7163edd70c98056768b10c037a4041da.zip
cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression in test/functional/email_addresses_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19267 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/email_addresses_controller_test.rb')
-rw-r--r--test/functional/email_addresses_controller_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index ac11ec383..08932236f 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -127,8 +127,8 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
:address => 'something@example.fr'
}
}
-
- assert_not_nil (mail = ActionMailer::Base.deliveries.last)
+ mail = ActionMailer::Base.deliveries.last
+ assert_not_nil mail
assert_mail_body_match '0.0.0.0', mail
assert_mail_body_match I18n.t(:mail_body_security_notification_add, field: I18n.t(:field_mail), value: 'something@example.fr'), mail
assert_select_email do
@@ -179,8 +179,8 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
:notify => '0'
},
:xhr => true
-
- assert_not_nil (mail = ActionMailer::Base.deliveries.last)
+ mail = ActionMailer::Base.deliveries.last
+ assert_not_nil mail
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
@@ -237,8 +237,8 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
:id => email.id
},
:xhr => true
-
- assert_not_nil (mail = ActionMailer::Base.deliveries.last)
+ mail = ActionMailer::Base.deliveries.last
+ assert_not_nil mail
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