aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test')
-rw-r--r--actionmailer/test/log_subscriber_test.rb7
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)