issue_3567_auto_assignment_spec.rb 512 B

123456789101112131415
  1. require 'rails_helper'
  2. RSpec.describe Issue3567AutoAssignment, type: :db_migration, db_strategy: :reset do
  3. context 'when setting contains article keys' do
  4. before do
  5. Setting.set('ticket_auto_assignment_selector', { 'condition'=>{ 'article.subject'=>{ 'operator' => 'contains', 'value' => 'test' } } })
  6. migrate
  7. end
  8. it 'config gets removed' do
  9. config = Setting.get('ticket_auto_assignment_selector')
  10. expect(config['condition']['article.subject']).to be nil
  11. end
  12. end
  13. end