##// END OF EJS Templates
move unit mailer test last_email method to the bottom and change to private...
Toshi MARUYAMA -
r9452:6e7eadf9fb7f
parent child
Show More
@@ -497,12 +497,6 class MailerTest < ActiveSupport::TestCase
497 497 assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail
498 498 end
499 499
500 def last_email
501 mail = ActionMailer::Base.deliveries.last
502 assert_not_nil mail
503 mail
504 end
505
506 500 def test_mailer_should_not_change_locale
507 501 Setting.default_language = 'en'
508 502 # Set current language to italian
@@ -536,4 +530,11 class MailerTest < ActiveSupport::TestCase
536 530 end
537 531 end
538 532 end
533
534 private
535 def last_email
536 mail = ActionMailer::Base.deliveries.last
537 assert_not_nil mail
538 mail
539 end
539 540 end
General Comments 0
You need to be logged in to leave comments. Login now