mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fixes rubocop warnings
This commit is contained in:
@@ -15,7 +15,8 @@ describe 'Multilingual', js: true do
|
||||
expect(Rails.application.config.i18n[:available_locales]).to eq ['en', 'es', 'pt']
|
||||
end
|
||||
|
||||
it '18n-js fallsback to default language' do # in backend it doesn't until we change enforce_available_locales to `true`
|
||||
it '18n-js fallsback to default language' do
|
||||
# in backend it doesn't until we change enforce_available_locales to `true`
|
||||
visit root_path
|
||||
set_i18n_locale('it')
|
||||
expect(get_i18n_translation('label_shops')).to eq 'Shops'
|
||||
@@ -141,6 +142,6 @@ describe 'Multilingual', js: true do
|
||||
end
|
||||
|
||||
def expect_menu_and_cookie_in_es
|
||||
expect(cookies_name['locale']).to have_attributes(:value=>"es")
|
||||
expect(cookies_name['locale']).to have_attributes(value: "es")
|
||||
expect(page).to have_content 'TIENDAS'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user