Skip to content

Commit 5307976

Browse files
committed
Add autoload for ActionController::TestRequest
This constant is referenced in actionpack/lib/action_dispatch/testing/assertions/routing.rb, which doesn't directly depend on ActionController::TestCase.
1 parent 6095b55 commit 5307976

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

actionpack/lib/action_controller.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ module ActionController
6666
autoload :ApiRendering
6767
end
6868

69-
autoload :TestCase, "action_controller/test_case"
70-
autoload :TemplateAssertions, "action_controller/test_case"
69+
autoload_at "action_controller/test_case" do
70+
autoload :TestCase
71+
autoload :TestRequest
72+
autoload :TemplateAssertions
73+
end
7174
end
7275

7376
# Common Active Support usage in Action Controller

0 commit comments

Comments
 (0)