1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test
claudiob 5e9a3e1292 Silence callback deprecation warning if testing AJ
Currently the log returned by running ActiveJob tests is filled with:

> DEPRECATION WARNING: Returning `false` in a callback will not implicitly halt a callback chain in the next release of Rails. To explicitly halt a callback chain, please use `throw :abort` instead.

For instance, see https://travis-ci.org/rails/rails/builds/77978273

This happens because some setup and teardown methods [like these one](https://github.com/rails/rails/blob/master/activejob/test/cases/async_job_test.rb#L10-L17)
invoke other methods like `perform_asynchronously!` that can return `false`, but
not with the intention of halting the process if they do.

In my opinion, these deprecation warnings can be silenced to have
the log result cleaner (especially when browsing for errors).
2015-08-31 00:30:53 -07:00
..
adapters Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
cases Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
integration Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
jobs Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
models
support Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
helper.rb Silence callback deprecation warning if testing AJ 2015-08-31 00:30:53 -07:00