1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Include the selector assertions on the test case

We don't need to require users to include this module on
ActionMailer::TestCase
This commit is contained in:
Rafael Mendonça França 2014-07-15 13:20:14 -03:00
parent 75fe384c81
commit 126a15e0fe
3 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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",

View file

@ -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"