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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user