ActionMailer::TestCase::Behavior::ClassMethods
Methods
D
M
T
Instance Public methods
determine_default_mailer(name)
# File actionmailer/lib/action_mailer/test_case.rb, line 67
def determine_default_mailer(name)
  mailer = determine_constant_from_test_name(name) do |constant|
    Class === constant && constant < ActionMailer::Base
  end
  raise NonInferrableMailerError.new(name) if mailer.nil?
  mailer
end
mailer_class()
# File actionmailer/lib/action_mailer/test_case.rb, line 59
def mailer_class
  if mailer = _mailer_class
    mailer
  else
    tests determine_default_mailer(name)
  end
end
tests(mailer)
# File actionmailer/lib/action_mailer/test_case.rb, line 48
def tests(mailer)
  case mailer
  when String, Symbol
    self._mailer_class = mailer.to_s.camelize.constantize
  when Module
    self._mailer_class = mailer
  else
    raise NonInferrableMailerError.new(mailer)
  end
end