Module: ActionMailer::TestCase::ClearTestDeliveries
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionmailer/lib/action_mailer/test_case.rb |
Class Method Summary
::ActiveSupport::Concern
- Extended
class_methods | Define class methods from given block. |
included | Evaluate given block in context of base class, so that you can write class macros here. |
prepended | Evaluate given block in context of base class, so that you can write class macros here. |
append_features, prepend_features |
Instance Method Summary
- #clear_test_deliveries private
DSL Calls
included
[ GitHub ]19 20 21 22
# File 'actionmailer/lib/action_mailer/test_case.rb', line 19
included do setup :clear_test_deliveries teardown :clear_test_deliveries end
Instance Method Details
#clear_test_deliveries (private)
[ GitHub ]# File 'actionmailer/lib/action_mailer/test_case.rb', line 25
def clear_test_deliveries if ActionMailer::Base.delivery_method == :test ActionMailer::Base.deliveries.clear end end