diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-22 13:27:20 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-22 13:27:26 +0100 |
commit | dcb925369389fa98d1548b25504c8e3a07eaeea3 (patch) | |
tree | 76193b6a2b9f0f1f8ead54686f3238df84773472 /actionmailer/test/mail_service_test.rb | |
parent | 6cf378aeb048e25037a11cabe6338cd893789258 (diff) | |
download | rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.tar.gz rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.tar.bz2 rails-dcb925369389fa98d1548b25504c8e3a07eaeea3.zip |
Add basic template rendering to new DSL.
Diffstat (limited to 'actionmailer/test/mail_service_test.rb')
-rw-r--r-- | actionmailer/test/mail_service_test.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index ec820e3464..62422fb4b3 100644 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -416,15 +416,6 @@ class ActionMailerTest < Test::Unit::TestCase assert_equal expected.encoded, delivered.encoded end - def test_subject_with_i18n - assert_nothing_raised { TestMailer.deliver_subject_with_i18n(@recipient) } - assert_equal "Subject with i18n", ActionMailer::Base.deliveries.first.subject.to_s - - I18n.backend.store_translations('en', :actionmailer => {:test_mailer => {:subject_with_i18n => {:subject => "New Subject!"}}}) - assert_nothing_raised { TestMailer.deliver_subject_with_i18n(@recipient) } - assert_equal "New Subject!", ActionMailer::Base.deliveries.last.subject.to_s - end - def test_custom_template expected = new_mail expected.to = @recipient |