Skip to content
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

Arreglar helpers de Devise #600

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

santiagorodriguez96
Copy link
Collaborator

Motivación

Los tests se nos están rompiendo localmente con el siguiente error cuando se llama al helper de sign_in de Devise:

Error:
UserOnboardingsControllerTest#test_patch_update_should_return_ok_when_signed_in:
RuntimeError: Could not find a valid mapping for #<User id: 6, uid: nil, provider: nil, email: [FILTERED], created_at: "2024-11-20 21:33:37.638546000 +0000", updated_at: "2024-11-20 21:33:37.638546000 +0000", approvals: [], welcome_banner_viewed: false>
    test/controllers/user_onboardings_controller_test.rb:9:in `block in <class:UserOnboardingsControllerTest>'

El error parece estar relacionado con heartcombo/devise#5705.

Detalles

Al parecer, una forma sugerida de solucionarlo es llamar a Rails.application.reload_routes_unless_loaded antes de cada test.

@santiagorodriguez96 santiagorodriguez96 merged commit 7d471d0 into master Nov 27, 2024
4 checks passed
@santiagorodriguez96 santiagorodriguez96 deleted the sr--fix-devise-helpers branch November 27, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants