Commit bb43abd
committed
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.1 parent 2170177 commit bb43abd
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | | - | |
49 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
0 commit comments