Class: ActiveJob::TestCase
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::TestCase ,
::ActiveSupport::Testing::Declarative ,
Minitest::Test
|
|
Instance Chain:
|
|
Inherits: |
ActiveSupport::TestCase
|
Defined in: | activejob/lib/active_job/test_case.rb |
Constant Summary
::ActiveSupport::TestCase
- Inherited
Class Attribute Summary
::ActiveSupport::TestCase
- Inherited
.config, .config?, .file_fixture_path, .file_fixture_path?, .fixture_class_names, .fixture_class_names?, .fixture_path, .fixture_path?, .fixture_table_names, .fixture_table_names?, .pre_loaded_fixtures, .pre_loaded_fixtures?, | |
.test_order | Returns the order in which test cases are run. |
.test_order= | Sets the order in which test cases are run. |
.use_instantiated_fixtures, .use_instantiated_fixtures?, .use_transactional_tests, .use_transactional_tests? |
Class Method Summary
::ActiveSupport::Testing::Declarative
- Extended
Instance Attribute Summary
TestHelper
- Included
::ActiveSupport::TestCase
- Inherited
::ActiveRecord::TestFixtures
- Included
Instance Method Summary
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 |
#queue_adapter_for_test | Specifies the queue adapter to use with all active job test helpers. |
::ActiveSupport::TestCase
- Inherited
#assert_no_match, #assert_not_empty, #assert_not_equal, #assert_not_in_delta, #assert_not_in_epsilon, #assert_not_includes, #assert_not_instance_of, #assert_not_kind_of, #assert_not_nil, #assert_not_operator, #assert_not_predicate, #assert_not_respond_to, #assert_not_same, | |
#assert_raise | test/unit backwards compatibility methods. |
#method_name |
::ActiveRecord::TestFixtures
- Included
::ActiveSupport::Testing::FileFixtures
- Included
#file_fixture | Returns a |
::ActiveSupport::Testing::TimeHelpers
- Included
#after_teardown, | |
#freeze_time | Calls |
#travel | Changes current time to the time in the future or in the past by a given time difference by stubbing |
#travel_back | Returns the current time back to its original state, by removing the stubs added by |
#travel_to | Changes current time to the given time by stubbing |
::ActiveSupport::Testing::Assertions
- Included
#assert_changes | Assertion that the result of evaluating an expression is changed before and after invoking the passed in block. |
#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_changes | Assertion that the result of evaluating an expression is not changed before and after invoking the passed in 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 | Asserts that an expression is not truthy. |
#assert_nothing_raised | Assertion that the block should not raise an exception. |