Fix flaky spec

`I18n.available_locales=` does a little magic[1] and was causing some flakieness along the way, as the `:wl` locale persisted in future specs

Thanks for the heads up @javierm 👌

[1] https://www.rubydoc.info/github/svenfuchs/i18n/I18n%2FConfig:available_locales=
This commit is contained in:
voodoorai2000
2018-10-09 22:15:05 +02:00
parent 6f978b9f4e
commit 59b35156b1

View File

@@ -56,7 +56,7 @@ feature 'Localization' do
before do before do
I18n.enforce_available_locales = false I18n.enforce_available_locales = false
I18n.available_locales << :wl I18n.available_locales = default_locales + [:wl]
I18n.locale = :wl I18n.locale = :wl
end end