aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test')
-rw-r--r--actionmailer/test/assert_select_email_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/actionmailer/test/assert_select_email_test.rb b/actionmailer/test/assert_select_email_test.rb
index 4c568f1945..376d97bdd7 100644
--- a/actionmailer/test/assert_select_email_test.rb
+++ b/actionmailer/test/assert_select_email_test.rb
@@ -2,8 +2,6 @@ require 'abstract_unit'
require 'rails-dom-testing'
class AssertSelectEmailTest < ActionMailer::TestCase
- Assertion = ActiveSupport::TestCase::Assertion
-
include Rails::Dom::Testing::Assertions::SelectorAssertions
class AssertSelectMailer < ActionMailer::Base
@@ -27,7 +25,10 @@ class AssertSelectEmailTest < ActionMailer::TestCase
#
def test_assert_select_email
- assert_raise(Assertion) { assert_select_email {} }
+ assert_raise ActiveSupport::TestCase::Assertion do
+ assert_select_email {}
+ end
+
AssertSelectMailer.test("<div><p>foo</p><p>bar</p></div>").deliver
assert_select_email do
assert_select "div:root" do