Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overriding ActionController::Live
Including ActionController::TestCase::Behavior overrides ActionController::Live#new_controller_thread. This issue also affects any production mode as the include is not done just in test mode. This pull request separates production code from test code by query the environment. In the future we should think about separating even more by monkey patching in tests only. Ref: rails/rails#31200
- Loading branch information