cleanup: rubocop: fix Layout/AlignArguments in test/unit/mailer_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18900 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-05 14:07:52 +00:00
parent 2f1138f9ba
commit dcc9ea1c0a

View File

@@ -816,7 +816,8 @@ class MailerTest < ActiveSupport::TestCase
def test_security_notification_should_include_title def test_security_notification_should_include_title
set_language_if_valid User.find(2).language set_language_if_valid User.find(2).language
with_settings :emails_footer => "footer without link" do with_settings :emails_footer => "footer without link" do
assert Mailer.deliver_security_notification(User.find(2), User.find(2), assert Mailer.deliver_security_notification(
User.find(2), User.find(2),
message: :notice_account_password_updated, message: :notice_account_password_updated,
title: :label_my_account title: :label_my_account
) )
@@ -830,7 +831,8 @@ class MailerTest < ActiveSupport::TestCase
def test_security_notification_should_include_link def test_security_notification_should_include_link
set_language_if_valid User.find(3).language set_language_if_valid User.find(3).language
with_settings :emails_footer => "footer without link" do with_settings :emails_footer => "footer without link" do
assert Mailer.deliver_security_notification(User.find(3), User.find(3), assert Mailer.deliver_security_notification(
User.find(3), User.find(3),
message: :notice_account_password_updated, message: :notice_account_password_updated,
title: :label_my_account, title: :label_my_account,
url: {controller: 'my', action: 'account'} url: {controller: 'my', action: 'account'}
@@ -979,7 +981,6 @@ class MailerTest < ActiveSupport::TestCase
def test_email_addresses_should_keep_addresses def test_email_addresses_should_keep_addresses
assert_equal ["foo@example.net"], assert_equal ["foo@example.net"],
Mailer.email_addresses("foo@example.net") Mailer.email_addresses("foo@example.net")
assert_equal ["foo@example.net", "bar@example.net"], assert_equal ["foo@example.net", "bar@example.net"],
Mailer.email_addresses(["foo@example.net", "bar@example.net"]) Mailer.email_addresses(["foo@example.net", "bar@example.net"])
end end
@@ -987,7 +988,6 @@ class MailerTest < ActiveSupport::TestCase
def test_email_addresses_should_replace_users_with_their_email_addresses def test_email_addresses_should_replace_users_with_their_email_addresses
assert_equal ["admin@somenet.foo"], assert_equal ["admin@somenet.foo"],
Mailer.email_addresses(User.find(1)) Mailer.email_addresses(User.find(1))
assert_equal ["admin@somenet.foo", "jsmith@somenet.foo"], assert_equal ["admin@somenet.foo", "jsmith@somenet.foo"],
Mailer.email_addresses(User.where(:id => [1,2])).sort Mailer.email_addresses(User.where(:id => [1,2])).sort
end end
@@ -995,7 +995,6 @@ class MailerTest < ActiveSupport::TestCase
def test_email_addresses_should_include_notified_emails_addresses_only def test_email_addresses_should_include_notified_emails_addresses_only
EmailAddress.create!(:user_id => 2, :address => "another@somenet.foo", :notify => false) EmailAddress.create!(:user_id => 2, :address => "another@somenet.foo", :notify => false)
EmailAddress.create!(:user_id => 2, :address => "another2@somenet.foo") EmailAddress.create!(:user_id => 2, :address => "another2@somenet.foo")
assert_equal ["another2@somenet.foo", "jsmith@somenet.foo"], assert_equal ["another2@somenet.foo", "jsmith@somenet.foo"],
Mailer.email_addresses(User.find(2)).sort Mailer.email_addresses(User.find(2)).sort
end end