Methods
Included Modules
- ActionDispatch::DrawOnce
- ActiveRecord::TestFixtures
- ActiveRecord::ValidationsRepairHelper
- ActiveSupport::Testing::SetupAndTeardown
- ActiveSupport::Testing::Assertions
- ActiveSupport::Testing::TimeHelpers
- ActiveSupport::Testing::FileFixtures
- TestHelpers::Paths
- TestHelpers::Rack
- TestHelpers::Generation
Constants
| Assertion | = | Minitest::Assertion |
Class Public methods
test_order()
Link
Returns the order in which test cases are run.
ActiveSupport::TestCase.test_order # => :random
Possible values are :random, :parallel,
:alpha, :sorted. Defaults to
:random.
test_order=(new_order)
Link
Sets the order in which test cases are run.
ActiveSupport::TestCase.test_order = :random # => :random
Valid values are:
-
:random(to run tests in random order) -
:parallel(to run tests in parallel) -
:sorted(to run tests alphabetically by method name) -
:alpha(equivalent to:sorted)
Instance Public methods
assert_nothing_raised(*args)
Link
Assertion that the block should not raise an exception.
Passes if evaluated code in the yielded block raises no exception.
assert_nothing_raised do
perform_service(param: 'no_exception')
end
create_fixtures(*fixture_set_names, &block)
Link