aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2014-05-28 11:38:22 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:26 +0200
commit9c9875b059f3d41a919cc628b610d8f6b4b7e24d (patch)
tree310264cd94c1e9b26abffac70c9254ac90216a72 /actionmailer/test
parentb276108330d9397740ce6a189f89d68206b8bf2c (diff)
downloadrails-9c9875b059f3d41a919cc628b610d8f6b4b7e24d.tar.gz
rails-9c9875b059f3d41a919cc628b610d8f6b4b7e24d.tar.bz2
rails-9c9875b059f3d41a919cc628b610d8f6b4b7e24d.zip
Inline Assertion reference.
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