issue_4018_remove_old_translations_spec.rb 489 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue4018RemoveOldTranslations, type: :db_migration do
  4. before do
  5. create(:translation, source: 'FORMAT_DATE', target_initial: 'Datum', target: 'Datum', is_synchronized_from_codebase: false)
  6. end
  7. it 'does remove old translations for source "FORMAT_DATE"' do
  8. migrate
  9. expect(Translation.where(locale: 'de-de', source: 'FORMAT_DATE').count).to eq(1)
  10. end
  11. end