Module: EffectiveTestBotMailerHelper
- Defined in:
- app/helpers/effective_test_bot_mailer_helper.rb
Instance Method Summary collapse
-
#assign_test_bot_mailer_info ⇒ Object
This is included to ActionMailer::Base an after_filter And allows the assert_email assertion to work.
Instance Method Details
#assign_test_bot_mailer_info ⇒ Object
This is included to ActionMailer::Base an after_filter And allows the assert_email assertion to work
4 5 6 7 |
# File 'app/helpers/effective_test_bot_mailer_helper.rb', line 4 def assign_test_bot_mailer_info actions = ActionMailer::Base.instance_variable_get(:@mailer_actions) ActionMailer::Base.instance_variable_set(:@mailer_actions, Array(actions) + [action_name]) end |