@@ -497,12 +497,6 class MailerTest < ActiveSupport::TestCase | |||||
497 | assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail |
|
497 | assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail | |
498 | end |
|
498 | end | |
499 |
|
499 | |||
500 | def last_email |
|
|||
501 | mail = ActionMailer::Base.deliveries.last |
|
|||
502 | assert_not_nil mail |
|
|||
503 |
|
||||
504 | end |
|
|||
505 |
|
||||
506 | def test_mailer_should_not_change_locale |
|
500 | def test_mailer_should_not_change_locale | |
507 | Setting.default_language = 'en' |
|
501 | Setting.default_language = 'en' | |
508 | # Set current language to italian |
|
502 | # Set current language to italian | |
@@ -536,4 +530,11 class MailerTest < ActiveSupport::TestCase | |||||
536 | end |
|
530 | end | |
537 | end |
|
531 | end | |
538 | end |
|
532 | end | |
|
533 | ||||
|
534 | private | |||
|
535 | def last_email | |||
|
536 | mail = ActionMailer::Base.deliveries.last | |||
|
537 | assert_not_nil mail | |||
|
538 | ||||
|
539 | end | |||
539 | end |
|
540 | end |
General Comments 0
You need to be logged in to leave comments.
Login now