diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-19 01:15:57 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-19 01:36:07 +0100 |
commit | a0374582ff6d403a48b018df666b064f4c261f20 (patch) | |
tree | a6d774ef38fd42ee21e3572b3860a7556b5862dc /actionmailer/test | |
parent | c7255386cd3d6de037a9b08b635f9ac299608ac4 (diff) | |
download | rails-a0374582ff6d403a48b018df666b064f4c261f20.tar.gz rails-a0374582ff6d403a48b018df666b064f4c261f20.tar.bz2 rails-a0374582ff6d403a48b018df666b064f4c261f20.zip |
Bring body(Hash) behavior back.
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/mail_service_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index 03bd0c238c..d1c4f7b5e9 100644 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -301,7 +301,6 @@ class TestMailer < ActionMailer::Base render :text => "testing" end - # This tests body calls accepeting a hash, which is deprecated. def body_ivar(recipient) recipients recipient subject "Body as a local variable" @@ -1089,8 +1088,7 @@ EOF end def test_body_is_stored_as_an_ivar - mail = nil - ActiveSupport::Deprecation.silence { mail = TestMailer.create_body_ivar(@recipient) } + mail = TestMailer.create_body_ivar(@recipient) assert_equal "body: foo\nbar: baz", mail.body.to_s end |