aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/log_subscriber_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-24 10:35:46 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-24 10:35:46 -0700
commitc4a9467af4f2e08db50b350a6ffca9bf4026ef59 (patch)
treec812cb4088b39425d58e831142c1b7eb16488d6c /actionmailer/test/log_subscriber_test.rb
parentae323a51f1dcf5529f34927cb91693a993416b07 (diff)
parentd500ad3f053517505458c3977f919ee962d04b24 (diff)
downloadrails-c4a9467af4f2e08db50b350a6ffca9bf4026ef59.tar.gz
rails-c4a9467af4f2e08db50b350a6ffca9bf4026ef59.tar.bz2
rails-c4a9467af4f2e08db50b350a6ffca9bf4026ef59.zip
Merge pull request #1271 from joshk/remove_am_deprecated_methods
Removed deprecated ActionMailer API and related tests
Diffstat (limited to 'actionmailer/test/log_subscriber_test.rb')
-rw-r--r--actionmailer/test/log_subscriber_test.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/actionmailer/test/log_subscriber_test.rb b/actionmailer/test/log_subscriber_test.rb
index ba9b4d6500..7d2e674a8c 100644
--- a/actionmailer/test/log_subscriber_test.rb
+++ b/actionmailer/test/log_subscriber_test.rb
@@ -11,13 +11,6 @@ class AMLogSubscriberTest < ActionMailer::TestCase
end
class TestMailer < ActionMailer::Base
- def basic
- recipients "somewhere@example.com"
- subject "basic"
- from "basic@example.com"
- body "Hello world"
- end
-
def receive(mail)
# Do nothing
end
@@ -28,12 +21,12 @@ class AMLogSubscriberTest < ActionMailer::TestCase
end
def test_deliver_is_notified
- TestMailer.basic.deliver
+ BaseMailer.welcome.deliver
wait
assert_equal(1, @logger.logged(:info).size)
- assert_match(/Sent mail to somewhere@example.com/, @logger.logged(:info).first)
+ assert_match(/Sent mail to system@test.lindsaar.net/, @logger.logged(:info).first)
assert_equal(1, @logger.logged(:debug).size)
- assert_match(/Hello world/, @logger.logged(:debug).first)
+ assert_match(/Welcome/, @logger.logged(:debug).first)
end
def test_receive_is_notified