2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-05-28 14:00:43 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Issue3567AutoAssignment, type: :db_migration, db_strategy: :reset do
|
|
|
|
context 'when setting contains article keys' do
|
|
|
|
before do
|
|
|
|
Setting.set('ticket_auto_assignment_selector', { 'condition'=>{ 'article.subject'=>{ 'operator' => 'contains', 'value' => 'test' } } })
|
|
|
|
migrate
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'config gets removed' do
|
|
|
|
config = Setting.get('ticket_auto_assignment_selector')
|
|
|
|
expect(config['condition']['article.subject']).to be nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|