1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/CHANGELOG.md
Kasper Timm Hansen 0d72489b2a * Don't eagerly require Rails' minitest plugin.
By making the Rails minitest behave like a standard minitest plugin
we're much more likely to not break when people use other minitest
plugins. Like minitest-focus and pride.

To do this, we need to behave like minitest: require files up front
and then perform the plugin behavior via the at_exit hook.
This also saves us a fair bit of wrangling with test file loading.

Finally, since the environment and warnings options have to be applied
as early as possible, and since minitest loads plugins at_exit, they
have to be moved to the test command.

* Don't expect the root method.

It's likely this worked because we eagerly loaded the Rails minitest plugin
and that somehow defined a root method on `Rails`.

* Assign a backtrace to failed exceptions.

Otherwise Minitest pukes when attempting to filter the backtrace (which
Rails' backtrace cleaner then removes).

Means the exception message test has to be revised too.

This is likely caused by the rails minitest plugin now being loaded for
these tests and assigning a default backtrace cleaner.
2017-07-10 20:40:16 +02:00

1.2 KiB

  • Make Rails' test runner work better with minitest plugins.

    By demoting the Rails test runner to just another minitest plugin — and thereby not eager loading it — we can co-exist much better with other minitest plugins such as pride and minitest-focus.

    Kasper Timm Hansen

  • Load environment file in dbconsole command.

    Fixes #29717

    Yuji Yaginuma

  • Add rails secrets:show command.

    Yuji Yaginuma

  • Allow mounting the same engine several times in different locations.

    Fixes #20204.

    David Rodríguez

  • Clear screenshot files in tmp:clear task.

    Yuji Yaginuma

  • Add railtie.rb to the plugin generator

    Tsukuru Tanimichi

  • Deprecate capify! method in generators and templates.

    Yuji Yaginuma

  • Allow irb options to be passed from rails console command.

    Fixes #28988.

    Yuji Yaginuma

  • Added a shared section to config/database.yml that will be loaded for all environments.

    Pierre Schambacher

  • Namespace error pages' CSS selectors to stop the styles from bleeding into other pages when using Turbolinks.

    Jan Krutisch

Please check 5-1-stable for previous changes.