group_spec.rb 795 B

123456789101112131415161718
  1. require 'rails_helper'
  2. require 'models/application_model_examples'
  3. require 'models/concerns/can_be_imported_examples'
  4. require 'models/concerns/has_object_manager_attributes_validation_examples'
  5. require 'models/concerns/has_collection_update_examples'
  6. require 'models/concerns/has_ticket_create_screen_impact_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 'HasObjectManagerAttributesValidation'
  13. it_behaves_like 'HasCollectionUpdate', collection_factory: :group
  14. it_behaves_like 'HasTicketCreateScreenImpact', create_screen_factory: :group
  15. it_behaves_like 'HasXssSanitizedNote', model_factory: :group
  16. end