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:
parent
75fe384c81
commit
126a15e0fe
3 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue