Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't force ActionController::TestCase to load
Instead of referencing ActionController::TestCase directly during boot, we can use a lazy load hook to apply our mixins if it is loaded later. The action_controller_test_case load hook was added in Rails 5.1, and the run_once option was added in Rails 5.2. I've left the behaviour unchanged for older Rails versions where they're not available.
- Loading branch information