mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-28 03:11:15 +00:00
fix source indent of test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20553 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
76cab94d10
commit
3f1bb5c8b2
@ -880,11 +880,13 @@ 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),
|
||||
message: :notice_account_password_updated,
|
||||
title: :label_my_account
|
||||
)
|
||||
assert(
|
||||
Mailer.deliver_security_notification(
|
||||
User.find(2), User.find(2),
|
||||
:message => :notice_account_password_updated,
|
||||
:title => :label_my_account
|
||||
)
|
||||
)
|
||||
assert_select_email do
|
||||
assert_select "a", false
|
||||
assert_select "h1", :text => I18n.t(:label_my_account)
|
||||
@ -895,12 +897,14 @@ 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),
|
||||
message: :notice_account_password_updated,
|
||||
title: :label_my_account,
|
||||
url: {controller: 'my', action: 'account'}
|
||||
)
|
||||
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'}
|
||||
)
|
||||
)
|
||||
assert_select_email do
|
||||
assert_select "h1", false
|
||||
assert_select 'a[href=?]', 'http://localhost:3000/my/account', :text => I18n.t(:label_my_account)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user