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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user