group_spec.rb 705 B

123456789101112131415161718
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'models/application_model_examples'
  4. require 'models/concerns/can_be_imported_examples'
  5. require 'models/concerns/has_object_manager_attributes_examples'
  6. require 'models/concerns/has_collection_update_examples'
  7. require 'models/concerns/has_xss_sanitized_note_examples'
  8. RSpec.describe Group, type: :model do
  9. subject(:group) { create(:group) }
  10. it_behaves_like 'ApplicationModel'
  11. it_behaves_like 'CanBeImported'
  12. it_behaves_like 'HasObjectManagerAttributes'
  13. it_behaves_like 'HasCollectionUpdate', collection_factory: :group
  14. it_behaves_like 'HasXssSanitizedNote', model_factory: :group
  15. end