From 83e268d69c16773b365089673bab308dd1ad0922 Mon Sep 17 00:00:00 2001 From: Splines Date: Sun, 8 Sep 2024 16:15:59 +0200 Subject: [PATCH] Explicitly set locale to German in course specs --- spec/models/course_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/models/course_spec.rb b/spec/models/course_spec.rb index 353fe81db..da0911427 100644 --- a/spec/models/course_spec.rb +++ b/spec/models/course_spec.rb @@ -546,6 +546,7 @@ self_item1 = Item.find_by(sort: "self", medium: @course_medium) self_item2 = Item.find_by(sort: "self", medium: @lecture_medium) self_item3 = Item.find_by(sort: "self", medium: @lesson_medium) + I18n.locale = :de expect(@course.media_items_with_inheritance) .to match_array([["Bem. 1.2 ", item1.id], ["SS 20, Satz 3.4 ", item2.id],