class ActionMailer::TestCase
Public Class Methods
          determine_default_mailer(name)
          
          click to toggle source
          
        
        
        Resolve the mailer from the test name when using the spec DSL
# File lib/minitest/rails.rb, line 92 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