Let Globalize use I18n locale

This is a mistake I made in commit f2ef27d3. Back then I thought we
needed to keep Globalize.locale and I18n.locale in sync, but the truth
is it automatically happens when setting Globalize.locale to nil.

So now we can use I18n.with_locale (at least in the tests) and forget
about Globalize, which will make it easier to switch to Mobility in the
future.
This commit is contained in:
Javi Martín
2019-09-19 20:59:35 +02:00
parent a0ee0e661f
commit 41c99d9b27
8 changed files with 14 additions and 25 deletions

View File

@@ -824,9 +824,7 @@ describe "Admin budget investments" do
before do
I18n.with_locale(:es) do
Globalize.with_locale(:es) do
create(:budget_investment, title: "Proyecto de inversión", budget: budget)
end
create(:budget_investment, title: "Proyecto de inversión", budget: budget)
end
end