Class: ActionMailer::TestCase
- Includes:
- Quoting, TestHelper
- Defined in:
- lib/action_mailer/test_case.rb
Constant Summary
Constants included from Quoting
Quoting::CHARS_NEEDING_QUOTING
Class Method Summary collapse
Methods included from Quoting
#quote_address_if_necessary, #quote_any_address_if_necessary, #quote_any_if_necessary, #quote_if_necessary, #quoted_printable, #quoted_printable_encode
Methods included from TestHelper
#assert_emails, #assert_no_emails
Class Method Details
.determine_default_mailer(name) ⇒ Object
31 32 33 34 35 |
# File 'lib/action_mailer/test_case.rb', line 31 def determine_default_mailer(name) name.sub(/Test$/, '').constantize rescue NameError => e raise NonInferrableMailerError.new(name) end |
.mailer_class ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/action_mailer/test_case.rb', line 23 def mailer_class if mailer = read_inheritable_attribute(:mailer_class) mailer else tests determine_default_mailer(name) end end |
.tests(mailer) ⇒ Object
19 20 21 |
# File 'lib/action_mailer/test_case.rb', line 19 def tests(mailer) write_inheritable_attribute(:mailer_class, mailer) end |