diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 17:31:18 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 17:31:18 +0100 |
commit | f30d73bab4c676b187276797ac2a6dc89132c43f (patch) | |
tree | 36cb0f1f3aaa3edf5b7daee48df69d22ae21ba34 /actionmailer/test/subscriber_test.rb | |
parent | 7409b734841c8bd691006634dd072212aa905cf4 (diff) | |
download | rails-f30d73bab4c676b187276797ac2a6dc89132c43f.tar.gz rails-f30d73bab4c676b187276797ac2a6dc89132c43f.tar.bz2 rails-f30d73bab4c676b187276797ac2a6dc89132c43f.zip |
Add new class delivery method API.
Diffstat (limited to 'actionmailer/test/subscriber_test.rb')
-rw-r--r-- | actionmailer/test/subscriber_test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/actionmailer/test/subscriber_test.rb b/actionmailer/test/subscriber_test.rb index aed5d2ca7e..6c347b8392 100644 --- a/actionmailer/test/subscriber_test.rb +++ b/actionmailer/test/subscriber_test.rb @@ -24,21 +24,21 @@ class AMSubscriberTest < ActionMailer::TestCase end def test_deliver_is_notified - TestMailer.deliver_basic + TestMailer.basic.deliver wait - assert_equal 1, @logger.logged(:info).size - assert_match /Sent mail to somewhere@example.com/, @logger.logged(:info).first - assert_equal 1, @logger.logged(:debug).size - assert_match /Hello world/, @logger.logged(:debug).first + assert_equal(1, @logger.logged(:info).size) + assert_match(/Sent mail to somewhere@example.com/, @logger.logged(:info).first) + assert_equal(1, @logger.logged(:debug).size) + assert_match(/Hello world/, @logger.logged(:debug).first) end def test_receive_is_notified fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email") TestMailer.receive(fixture) wait - assert_equal 1, @logger.logged(:info).size - assert_match /Received mail/, @logger.logged(:info).first - assert_equal 1, @logger.logged(:debug).size - assert_match /Jamis/, @logger.logged(:debug).first + assert_equal(1, @logger.logged(:info).size) + assert_match(/Received mail/, @logger.logged(:info).first) + assert_equal(1, @logger.logged(:debug).size) + assert_match(/Jamis/, @logger.logged(:debug).first) end end
\ No newline at end of file |