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

@@ -3,7 +3,7 @@ require "rails_helper"
describe "Localization" do
scenario "Wrong locale" do
Globalize.with_locale(:es) do
I18n.with_locale(:es) do
create(:widget_card, title: "Bienvenido a CONSUL",
description: "Software libre para la participación ciudadana.",
link_text: "Más información",