mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 08:16:03 +01:00
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:
@@ -816,7 +816,8 @@ class MailerTest < ActiveSupport::TestCase
|
||||
def test_security_notification_should_include_title
|
||||
set_language_if_valid User.find(2).language
|
||||
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,
|
||||
title: :label_my_account
|
||||
)
|
||||
@@ -830,7 +831,8 @@ class MailerTest < ActiveSupport::TestCase
|
||||
def test_security_notification_should_include_link
|
||||
set_language_if_valid User.find(3).language
|
||||
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,
|
||||
title: :label_my_account,
|
||||
url: {controller: 'my', action: 'account'}
|
||||
@@ -979,7 +981,6 @@ class MailerTest < ActiveSupport::TestCase
|
||||
def test_email_addresses_should_keep_addresses
|
||||
assert_equal ["foo@example.net"],
|
||||
Mailer.email_addresses("foo@example.net")
|
||||
|
||||
assert_equal ["foo@example.net", "bar@example.net"],
|
||||
Mailer.email_addresses(["foo@example.net", "bar@example.net"])
|
||||
end
|
||||
@@ -987,7 +988,6 @@ class MailerTest < ActiveSupport::TestCase
|
||||
def test_email_addresses_should_replace_users_with_their_email_addresses
|
||||
assert_equal ["admin@somenet.foo"],
|
||||
Mailer.email_addresses(User.find(1))
|
||||
|
||||
assert_equal ["admin@somenet.foo", "jsmith@somenet.foo"],
|
||||
Mailer.email_addresses(User.where(:id => [1,2])).sort
|
||||
end
|
||||
@@ -995,7 +995,6 @@ class MailerTest < ActiveSupport::TestCase
|
||||
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 => "another2@somenet.foo")
|
||||
|
||||
assert_equal ["another2@somenet.foo", "jsmith@somenet.foo"],
|
||||
Mailer.email_addresses(User.find(2)).sort
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user