1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/test
Jonathan Hefner 33fdae0584 Fix backtraces for generated plugin tests
`Minitest.plugin_rails_init` sets `Minitest.backtrace_filter` to
`Rails.backtrace_cleaner` right before tests are run, overwriting the
value set in test_helper.rb.

`Rails.backtrace_cleaner` silences backtrace lines that do not start
with `Rails.root` followed by e.g. "lib/" or "test/".  Thus when
`Rails.root` is a subdirectory of the project directory -- for example,
when testing a plugin that has a dummy app -- all lines of the backtrace
are silenced.

This commit adds a fallback such that when all backtrace lines are
silenced, the original `Minitest.backtrace_filter` is used instead.

Additionally, this commit refactors and expands existing test coverage.
2020-10-07 15:40:56 -05:00
..
controllers Eliminate fixture_file_upload related deprecation warnings in actionmailbox/test 2020-09-21 16:14:20 +03:00
dummy Unify raise_on_missing_translations for views and controllers 2020-05-20 02:42:59 +03:00
fixtures/files
generators Module#const_set is a public method 2020-09-15 17:19:37 +09:00
jobs
unit
test_helper.rb Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00