live controllers should have live responses

detect the type of controller we're testing and return the right type of
response based on that controller.  This allows us to stop doing the
weird sleep thing.
use built-in exception handling in live controllers

when an exception happens in an action before the response has been
committed, then we should re-raise the exception in the main thread.
This lets us reuse the existing exception handling.
Merge pull request #14195 from robin850/issue-14079

Avoid namespacing routes inside engines
make sure we wait for the threads to shut down before asserting closure
Replace map.flatten(1) with flat_map
Merge pull request #14240 from sferik/flat_map

Replace map.flatten(1) with flat_map
Merge pull request #14234 from arthurnn/fix_trans_on_replace

Remove unnecessary db call when replacing.
Refactor tests from BaseRackTest into BaseRequestTest
Fix warnings due to:
- unused variable in PG Adapter.
- Ambiguous argument warning from range_test for use - to + Infinity range without brackets.
Merge pull request #14248 from vipulnsward/fix-pg-ar-warnings

Fix PG warnings.
Merge pull request #14239 from zzak/refactor_actionpack_dispatch_request_tests

Refactor actionpack ActionDispatch::Request tests
fixes default attributes for button_tag
fix accept nil options
fix button tag without options
fix form button
fix indentations
Add a comment to ensure that a test won't be removed [ci skip]

The 'cow' => 'kine' inflection has gone with c300dca9 but it should
not be removed from the tested irregularities since it ensures that
inflections work with words that do not begin with the same letters.
fix content_or_options to be replaced by options and set to nil
Add spaces to deep_munge log message.
cleanup and move extracted method right into the helper