Fixes rubocop warnings

This commit is contained in:
filipefurtad0
2021-12-11 17:48:09 +00:00
parent 67d24373e6
commit af548815ae

View File

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