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

@@ -42,7 +42,7 @@ class OnboardingControllerTest < ActionDispatch::IntegrationTest
assert_redirected_to dashboard_path
follow_redirect!
assert_select ".notification", /Bienvenue sur AperoNight/
assert_select ".notification", /Bienvenue sur Aperonight/
@user_without_onboarding.reload
assert @user_without_onboarding.onboarding_completed?