Skip to content

Commit d88796d

Browse files
authored
Fix running non-integration tests under Rails main (#1996)
1 parent aabf7bd commit d88796d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/view_component/test_helpers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def vc_test_controller
238238
#
239239
# @return [ActionDispatch::TestRequest]
240240
def vc_test_request
241+
require "action_controller/test_case"
242+
241243
@vc_test_request ||=
242244
begin
243245
out = ActionDispatch::TestRequest.create

0 commit comments

Comments
 (0)