trabajo-afectivo/spec/db/migrate/issue_3194_update_permissions_spec.rb

10 lines
400 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
require 'rails_helper'
RSpec.describe Issue3194UpdatePermissions, type: :db_migration do
it 'does update settings with new permissions' do
expect { migrate }.to change { Setting.find_by(name: 'ticket_subject_size').preferences[:permission] }.to include('admin.channel_google', 'admin.channel_microsoft365')
end
end