Class: ActionMailer::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/rails.rb

Class Method Summary collapse

Class Method Details

.determine_default_mailer(name) ⇒ Object

Raises:

  • (ActionMailer::NonInferrableMailerError)

105
106
107
108
109
110
111
# File 'lib/minitest/rails.rb', line 105

def self.determine_default_mailer(name)
  mailer = determine_constant_from_test_name(name) do |constant|
    Class === constant && constant < ::ActionMailer::Base
  end
  raise ActionMailer::NonInferrableMailerError.new(name) if mailer.nil?
  mailer
end