123456789_123456789_123456789_123456789_123456789_

Module: ActionMailer::TestCase::Behavior

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, Rails::Dom::Testing::Assertions::DomAssertions, Rails::Dom::Testing::Assertions::SelectorAssertions, ::ActionMailer::TestHelper, ::ActiveJob::TestHelper, ::ActiveJob::TestHelper::TestQueueAdapter, ::ActiveSupport::Testing::ConstantLookup
Defined in: actionmailer/lib/action_mailer/test_case.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::ActionMailer::TestHelper - Included

#assert_emails

Asserts that the number of emails sent matches the given number.

#assert_enqueued_email_with

Asserts that block should cause the specified email to be enqueued.

#assert_enqueued_emails

Asserts that the number of emails enqueued for later delivery matches the given number.

#assert_no_emails

Asserts that no emails have been sent.

#assert_no_enqueued_emails

Asserts that no emails are enqueued for later delivery.

::ActiveJob::TestHelper - Included

#assert_enqueued_jobs

Asserts that the number of enqueued jobs matches the given number.

#assert_enqueued_with

Asserts that the job passed in the block has been enqueued with the given arguments.

#assert_no_enqueued_jobs

Asserts that no jobs have been enqueued.

#assert_no_performed_jobs

Asserts that no jobs have been performed.

#assert_performed_jobs

Asserts that the number of performed jobs matches the given number.

#assert_performed_with

Asserts that the job passed in the block has been performed with the given arguments.

#perform_enqueued_jobs

Performs all enqueued jobs in the duration of the block.

#queue_adapter

Accesses the queue_adapter set by ::ActiveJob::Base.

#queue_adapter_for_test

Specifies the queue adapter to use with all active job test helpers.

DSL Calls

included

[ GitHub ]


41
42
43
44
45
46
47
# File 'actionmailer/lib/action_mailer/test_case.rb', line 41

included do
  class_attribute :_mailer_class
  setup :initialize_test_deliveries
  setup :set_expected_mail
  teardown :restore_test_deliveries
  ActiveSupport.run_load_hooks(:action_mailer_test_case, self)
end