Module: ActionMailer::TestCase::Behavior::ClassMethods
- Defined in:
- actionmailer/lib/action_mailer/test_case.rb
Instance Method Summary collapse
Instance Method Details
#determine_default_mailer(name) ⇒ Object
31 32 33 34 35 |
# File 'actionmailer/lib/action_mailer/test_case.rb', line 31 def determine_default_mailer(name) name.sub(/Test$/, '').constantize rescue NameError raise NonInferrableMailerError.new(name) end |
#mailer_class ⇒ Object
23 24 25 26 27 28 29 |
# File 'actionmailer/lib/action_mailer/test_case.rb', line 23 def mailer_class if mailer = self._mailer_class mailer else tests determine_default_mailer(name) end end |
#tests(mailer) ⇒ Object
19 20 21 |
# File 'actionmailer/lib/action_mailer/test_case.rb', line 19 def tests(mailer) self._mailer_class = mailer end |