list_spec.rb 396 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Service::Channel::Admin::List, current_user_id: 1 do
  4. subject(:service) { described_class.new(area: channel.area) }
  5. let!(:channel) { create(:channel) }
  6. describe '#execute' do
  7. it 'destroys the channel' do
  8. expect(service.execute).to eq([channel])
  9. end
  10. end
  11. end