diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-12-28 11:57:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-28 11:57:44 -0500 |
commit | f046018402b1f25dcc61a1a7f3679180e8df9509 (patch) | |
tree | 6e5ba534004a8386482333707746af57a8b965c0 /actionmailer/test | |
parent | e4b6495fd14cfcae7f101821ebf296c75ceca996 (diff) | |
parent | 2e29488a8949bf410f95b7c7949c8be29d74b2b2 (diff) | |
download | rails-f046018402b1f25dcc61a1a7f3679180e8df9509.tar.gz rails-f046018402b1f25dcc61a1a7f3679180e8df9509.tar.bz2 rails-f046018402b1f25dcc61a1a7f3679180e8df9509.zip |
Merge pull request #34814 from bogdanvlviv/follow-up-e3f832a7433a
Remove mention about `receive.action_mailer` from the AS instrumentation guide
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/log_subscriber_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionmailer/test/log_subscriber_test.rb b/actionmailer/test/log_subscriber_test.rb index e984dcdbdb..fb569ce45f 100644 --- a/actionmailer/test/log_subscriber_test.rb +++ b/actionmailer/test/log_subscriber_test.rb @@ -3,11 +3,10 @@ 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, ActiveSupport::Testing::Stream + include ActiveSupport::LogSubscriber::TestHelper def setup super @@ -54,7 +53,9 @@ class AMLogSubscriberTest < ActionMailer::TestCase def test_receive_is_notified fixture = File.read(File.expand_path("fixtures/raw_email", __dir__)) - silence_stream(STDERR) { TestMailer.receive(fixture) } + assert_deprecated do + TestMailer.receive(fixture) + end wait assert_equal(1, @logger.logged(:info).size) assert_match(/Received mail/, @logger.logged(:info).first) |