mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
70fae9a434
If you have a regular test that have a teardown block, and for any reason an exception get raised, ActiveSupport will not run subsequent after_teardown method provided by other module or gems. One of them being the ActiveRecord::TestFixtures which won't rollback the transation when the test ends making all subsequent test to be in a weird state. The default implementation of minitest is to run all teardown methods from the user's test, rescue all exceptions, run all after_teardown methods provided by libraries and finally re-raise the exception that happened in the user's teardown method. Rails should do the same. |
||
---|---|---|
.. | ||
cache | ||
concurrency | ||
core_ext | ||
dependencies | ||
deprecation | ||
duration | ||
inflector | ||
json | ||
locale | ||
log_subscriber | ||
messages | ||
multibyte | ||
notifications | ||
number_helper | ||
testing | ||
values | ||
xml_mini | ||
all.rb | ||
array_inquirer.rb | ||
backtrace_cleaner.rb | ||
benchmarkable.rb | ||
builder.rb | ||
cache.rb | ||
callbacks.rb | ||
concern.rb | ||
configurable.rb | ||
core_ext.rb | ||
current_attributes.rb | ||
dependencies.rb | ||
deprecation.rb | ||
descendants_tracker.rb | ||
digest.rb | ||
duration.rb | ||
encrypted_configuration.rb | ||
encrypted_file.rb | ||
evented_file_update_checker.rb | ||
execution_wrapper.rb | ||
executor.rb | ||
file_update_checker.rb | ||
gem_version.rb | ||
gzip.rb | ||
hash_with_indifferent_access.rb | ||
i18n.rb | ||
i18n_railtie.rb | ||
inflections.rb | ||
inflector.rb | ||
json.rb | ||
key_generator.rb | ||
lazy_load_hooks.rb | ||
log_subscriber.rb | ||
logger.rb | ||
logger_silence.rb | ||
logger_thread_safe_level.rb | ||
message_encryptor.rb | ||
message_verifier.rb | ||
multibyte.rb | ||
notifications.rb | ||
number_helper.rb | ||
option_merger.rb | ||
ordered_hash.rb | ||
ordered_options.rb | ||
per_thread_registry.rb | ||
proxy_object.rb | ||
rails.rb | ||
railtie.rb | ||
reloader.rb | ||
rescuable.rb | ||
security_utils.rb | ||
string_inquirer.rb | ||
subscriber.rb | ||
tagged_logging.rb | ||
test_case.rb | ||
time.rb | ||
time_with_zone.rb | ||
version.rb | ||
xml_mini.rb |