Fix failing tests and improve email template consistency

- Fix onboarding controller test by using consistent application name
- Fix ticket mailer template error by correcting variable reference (@user.first_name)
- Update event reminder template to use configurable app name
- Refactor mailer tests to properly handle multipart email content
- Update test assertions to match actual template content
- Remove duplicate migration for onboarding field
- Add documentation for test fixes and solutions
This commit is contained in:
kbe
2025-09-08 12:36:33 +02:00
parent d1308bc988
commit 8f9795d773
11 changed files with 402 additions and 31 deletions

View File

@@ -11,7 +11,7 @@ class OnboardingController < ApplicationController
current_user.update!(onboarding_params)
current_user.complete_onboarding!
flash[:notice] = "Bienvenue sur AperoNight ! Votre profil a été configuré avec succès."
flash[:notice] = "Bienvenue sur #{Rails.application.config.app_name} ! Votre profil a été configuré avec succès."
redirect_to dashboard_path
else
flash.now[:alert] = "Veuillez remplir tous les champs requis."