From e911698b8de0d6a07f7da64a93cd205e9ee8ef80 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sat, 16 Nov 2024 15:08:42 -0500 Subject: [PATCH] Workaround for devise issue? --- spec/rails_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 574d543844..6564f17372 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -119,6 +119,11 @@ RSpec.configure do |config| config.include CommandLineHelpers, type: :cli config.include SystemHelpers, type: :system + # TODO: Remove when Devise fixes https://github.com/heartcombo/devise/issues/5705 + config.before do + Rails.application.reload_routes_unless_loaded + end + config.around(:each, use_transactional_tests: false) do |example| self.use_transactional_tests = false example.run