summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-03 13:19:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-03 13:19:32 +0000
commit3f1bb5c8b2c3f6b53b3176abda65d25c1549aa79 (patch)
treed92bc27462a87390c71c920d2b2c7315458a9bca /test
parent76cab94d1013737e87fb626a03c8a414813d3daa (diff)
downloadredmine-3f1bb5c8b2c3f6b53b3176abda65d25c1549aa79.tar.gz
redmine-3f1bb5c8b2c3f6b53b3176abda65d25c1549aa79.zip
fix source indent of test/unit/mailer_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20553 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mailer_test.rb26
1 files changed, 15 insertions, 11 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 85676ca5a..8f098fbaf 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -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)