Follow-up: d57dadb2
- Maintenance: Fix issue with locale handling in tests.
This commit is contained in:
parent
34cf62fc10
commit
2d494ae4ce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue