123456789_123456789_123456789_123456789_123456789_

Class: ActionMailer::TestCase

Relationships & Source Files
Namespace Children
Modules:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveSupport::TestCase
Defined in: actionmailer/lib/action_mailer/test_case.rb

Constant Summary

::ActiveSupport::Callbacks - Inherited

CALLBACK_FILTER_TYPES

::ActiveSupport::TestCase - Inherited

Assertion

Behavior - Attributes & Methods

Class Attribute Summary

Class Method Summary

::ActiveSupport::TestCase - Inherited

::ActiveSupport::DescendantsTracker - Inherited

clear, descendants, direct_descendants,
store_inherited

This is the only method that is not thread safe, but is only ever called during the eager loading phase.

::ActiveSupport::Testing::Declarative - Extended

test

Helper to define a test method using a ::String.

Instance Attribute Summary

Instance Method Summary

TestHelper - Included

#assert_emails

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

#assert_no_emails

Assert that no emails have been sent.

::ActiveSupport::TestCase - Inherited

::ActiveRecord::TestFixtures - Included

::ActiveSupport::Testing::TimeHelpers - Included

#travel

Changes current time to the time in the future or in the past by a given time difference by stubbing Time.now, Date.today, and DateTime.now.

#travel_back

Returns the current time back to its original state, by removing the stubs added by travel and travel_to.

#travel_to

Changes current time to the given time by stubbing Time.now, Date.today, and DateTime.now to return the time or date passed into this method.

::ActiveSupport::Testing::Assertions - Included

#assert_difference

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block.

#assert_no_difference

Assertion that the numeric result of evaluating an expression is not changed before and after invoking the passed in block.

#assert_not

Assert that an expression is not truthy.

::ActiveSupport::Callbacks - Inherited

#run_callbacks

Runs the callbacks for the given event.

Class Attribute Details

._mailer_class (rw)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/test_case.rb', line 23

class_attribute :_mailer_class

._mailer_class?Boolean (rw)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/test_case.rb', line 23

class_attribute :_mailer_class

Instance Attribute Details

#_mailer_class (rw)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/test_case.rb', line 23

class_attribute :_mailer_class

#_mailer_class?Boolean (rw)

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/test_case.rb', line 23

class_attribute :_mailer_class