updater_spec.rb 608 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe(FormUpdater::Updater) do
  4. it 'checks that form updater supports a list' do
  5. expect(described_class.updaters.sort_by(&:name)).to include(FormUpdater::Updater::Ticket::Create,
  6. FormUpdater::Updater::User::Create,
  7. FormUpdater::Updater::User::Edit,
  8. FormUpdater::Updater::Organization::Edit)
  9. end
  10. end