Combine specs and add detail

This commit is contained in:
Maikel Linke
2026-03-18 13:14:57 +11:00
parent 60a4d36408
commit 3f29cdab3c

View File

@@ -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