-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 8: test helpers do not work #5705
Comments
Mine worked after adding |
Temp workaround:
|
In my case, the tests that were failing were the ones indirectly involving Anyway, here is the workaround I added to my ActiveSupport.on_load(:action_mailer) do
Rails.application.reload_routes_unless_loaded
end |
This also worked for me in my |
Environment
Steps to reproduce
Run the following bash commands (tested on macOS):
Current behavior
I get the following error:
Expected behavior
Test should pass:
Workaround
A workaround is to use one of those before the
sign_in
call:Rails.application.routes_reloader.execute_unless_loaded
(public API)Rails.application.reload_routes_unless_loaded
(private API)Additional information
The text was updated successfully, but these errors were encountered: