issue_3567_auto_assignment_spec.rb 589 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue3567AutoAssignment, db_strategy: :reset, type: :db_migration do
  4. context 'when setting contains article keys' do
  5. before do
  6. Setting.set('ticket_auto_assignment_selector', { 'condition'=>{ 'article.subject'=>{ 'operator' => 'contains', 'value' => 'test' } } })
  7. migrate
  8. end
  9. it 'config gets removed' do
  10. config = Setting.get('ticket_auto_assignment_selector')
  11. expect(config['condition']['article.subject']).to be_nil
  12. end
  13. end
  14. end