issue_4219_ldap_wizard_spec.rb 419 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue4219LdapWizard, type: :db_migration do
  4. let(:ldap) { create(:ldap_source) }
  5. before do
  6. ldap.preferences['wizardData'] = { a: 1 }
  7. ldap.save!
  8. migrate
  9. end
  10. it 'does remove wizard data from ldap sources' do
  11. expect(ldap.reload.preferences).not_to have_key('wizardData')
  12. end
  13. end