Follow-up: d57dadb2 - Maintenance: Fix issue with locale handling in tests.

This commit is contained in:
Martin Gruner 2021-09-15 07:29:36 +02:00
parent 34cf62fc10
commit 2d494ae4ce

View file

@ -8,7 +8,7 @@ RSpec.describe Issue1219ZhtwLocaleTypo, type: :db_migration do
let(:user) { create(:user, preferences: { locale: premigrate_locale }) }
before do
Locale.find_by(locale: %w[zh-tw zj-tw])&.destroy
Locale.where(locale: %w[zh-tw zj-tw]).each(&:destroy)
stub_const("#{described_class}::CURRENT_VERSION", version)
end