diff --git a/actionmailer/lib/action_mailer/test_case.rb b/actionmailer/lib/action_mailer/test_case.rb index 9207c1bc56..d507032838 100644 --- a/actionmailer/lib/action_mailer/test_case.rb +++ b/actionmailer/lib/action_mailer/test_case.rb @@ -1,4 +1,5 @@ require 'active_support/test_case' +require 'rails-dom-testing' module ActionMailer class NonInferrableMailerError < ::StandardError @@ -15,6 +16,7 @@ module ActionMailer include ActiveSupport::Testing::ConstantLookup include TestHelper + include Rails::Dom::Testing::Assertions::SelectorAssertions included do class_attribute :_mailer_class diff --git a/actionmailer/test/assert_select_email_test.rb b/actionmailer/test/assert_select_email_test.rb index 376d97bdd7..57ae3436e1 100644 --- a/actionmailer/test/assert_select_email_test.rb +++ b/actionmailer/test/assert_select_email_test.rb @@ -1,9 +1,6 @@ require 'abstract_unit' -require 'rails-dom-testing' class AssertSelectEmailTest < ActionMailer::TestCase - include Rails::Dom::Testing::Assertions::SelectorAssertions - class AssertSelectMailer < ActionMailer::Base def test(html) mail body: html, content_type: "text/html", diff --git a/actionview/test/template/atom_feed_helper_test.rb b/actionview/test/template/atom_feed_helper_test.rb index 9d306310ea..a2d6b81aad 100644 --- a/actionview/test/template/atom_feed_helper_test.rb +++ b/actionview/test/template/atom_feed_helper_test.rb @@ -207,8 +207,6 @@ end class AtomFeedTest < ActionController::TestCase tests ScrollsController - include Rails::Dom::Testing::Assertions::SelectorAssertions - def setup super @request.host = "www.nextangle.com"