563d2d1e3d
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) from 2.8.0 to 2.9.0. - [Release notes](https://github.com/rubocop/rubocop-rspec/releases) - [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.8.0...v2.9.0)
17 lines
589 B
Ruby
17 lines
589 B
Ruby
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
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
|