mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Combine specs and add detail
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user