From de12e781effe7f59753a466a04e492797abb57be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Thu, 9 Feb 2023 15:38:50 +0100 Subject: [PATCH] tests --- test/controllers/server/universities_controller_test.rb | 3 ++- test/fixtures/universities.yml | 2 ++ test/fixtures/university/people.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/controllers/server/universities_controller_test.rb b/test/controllers/server/universities_controller_test.rb index b68f98caf..b512593f4 100644 --- a/test/controllers/server/universities_controller_test.rb +++ b/test/controllers/server/universities_controller_test.rb @@ -29,7 +29,8 @@ class Server::UniversitiesControllerTest < ActionDispatch::IntegrationTest university: { name: "Nouvelle université", identifier: "my-second-university", - sms_sender_name: "unitest2" + sms_sender_name: "unitest2", + default_language_id: languages(:fr).id } } university = University.find_by(identifier: "my-second-university") diff --git a/test/fixtures/universities.yml b/test/fixtures/universities.yml index 5a30986b3..ecf1de669 100644 --- a/test/fixtures/universities.yml +++ b/test/fixtures/universities.yml @@ -39,8 +39,10 @@ default_university: name: Université de test identifier: my-university sms_sender_name: "unitest" + default_language: fr stale_university: name: Université obsolète identifier: stale-university sms_sender_name: "unistale" + default_language: fr diff --git a/test/fixtures/university/people.yml b/test/fixtures/university/people.yml index 5c4288849..4c0df963a 100644 --- a/test/fixtures/university/people.yml +++ b/test/fixtures/university/people.yml @@ -64,3 +64,4 @@ alumnus: - default_cohort university: default_university user: alumnus + language: fr -- GitLab