Remove unnecessary locales check in specs

We define the available locales in the test environment, so Spanish is
always available in this environment even if it isn't available in the
production environment.
This commit is contained in:
Javi Martín
2021-09-08 03:02:51 +02:00
parent 702fc84391
commit 2927174e06

View File

@@ -24,10 +24,7 @@ describe "Level two verification" do
end
context "In Spanish, with no fallbacks" do
before do
skip unless I18n.available_locales.include?(:es)
allow(I18n.fallbacks).to receive(:[]).and_return([:es])
end
before { allow(I18n.fallbacks).to receive(:[]).and_return([:es]) }
scenario "Works normally" do
user = create(:user)