diff options
author | George Claghorn <george@basecamp.com> | 2018-12-27 21:15:10 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-12-27 21:17:58 -0500 |
commit | e3f832a7433a291a51c5df397dc3dd654c1858cb (patch) | |
tree | 3137f4fcdd79768e24e1a6778a1cc5ae1c9e74de /actionmailer/test | |
parent | 22a6ff68b1264de693364dd89be651dda9626284 (diff) | |
download | rails-e3f832a7433a291a51c5df397dc3dd654c1858cb.tar.gz rails-e3f832a7433a291a51c5df397dc3dd654c1858cb.tar.bz2 rails-e3f832a7433a291a51c5df397dc3dd654c1858cb.zip |
Deprecate ActionMailer::Base.receive in favor of Action Mailbox
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/log_subscriber_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionmailer/test/log_subscriber_test.rb b/actionmailer/test/log_subscriber_test.rb index 7686fd10c9..e984dcdbdb 100644 --- a/actionmailer/test/log_subscriber_test.rb +++ b/actionmailer/test/log_subscriber_test.rb @@ -3,10 +3,11 @@ require "abstract_unit" require "mailers/base_mailer" require "active_support/log_subscriber/test_helper" +require "active_support/testing/stream" require "action_mailer/log_subscriber" class AMLogSubscriberTest < ActionMailer::TestCase - include ActiveSupport::LogSubscriber::TestHelper + include ActiveSupport::LogSubscriber::TestHelper, ActiveSupport::Testing::Stream def setup super @@ -53,7 +54,7 @@ class AMLogSubscriberTest < ActionMailer::TestCase def test_receive_is_notified fixture = File.read(File.expand_path("fixtures/raw_email", __dir__)) - TestMailer.receive(fixture) + silence_stream(STDERR) { TestMailer.receive(fixture) } wait assert_equal(1, @logger.logged(:info).size) assert_match(/Received mail/, @logger.logged(:info).first) |