1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Edouard CHIN 70fae9a434 SetupAndTeardown#teardown should call any subsequent after_teardown:
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.
2018-04-06 04:54:56 -04:00
..
active_support SetupAndTeardown#teardown should call any subsequent after_teardown: 2018-04-06 04:54:56 -04:00
active_support.rb Bump license years for 2018 2017-12-31 22:36:55 +09:00