From 3f29cdab3ccff97fce5a3f47d256b5984f954301 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Mar 2026 13:14:57 +1100 Subject: [PATCH] Combine specs and add detail --- spec/system/consumer/multilingual_spec.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index f1826c9537..279ad31739 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -48,15 +48,13 @@ RSpec.describe 'Multilingual' do visit root_path expect_menu_and_cookie_in_es - end - it 'updates user locale and stays in cookie after logout' do - login_as user + # The user's locale is not changed if the language was chosen before + # login. Is it a bug or a feature? Probably not important... + expect(user.reload.locale).to eq nil visit root_path(locale: 'es') - user.reload - - expect(user.locale).to eq 'es' + expect(user.reload.locale).to eq 'es' logout