From 0d2b06a80be8579a0bdba01a10745fb393f9816b Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez <46354312+santiagorodriguez96@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:36:12 -0300 Subject: [PATCH] tests: fix Devise test helpers Momentary workaround for https://github.com/heartcombo/devise/issues/5705. --- test/application_controller_test_case.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/application_controller_test_case.rb b/test/application_controller_test_case.rb index 05005867..33e0f927 100644 --- a/test/application_controller_test_case.rb +++ b/test/application_controller_test_case.rb @@ -2,4 +2,9 @@ class ApplicationControllerTestCase < ActionDispatch::IntegrationTest include Devise::Test::IntegrationHelpers + + # TODO: remove when Devise fixes https://github.com/heartcombo/devise/issues/5705 + setup do + Rails.application.reload_routes_unless_loaded + end end