2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2019-01-22 16:35:01 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
require 'models/application_model_examples'
|
2019-01-28 06:04:05 +00:00
|
|
|
require 'models/concerns/can_be_imported_examples'
|
2021-08-17 16:37:16 +00:00
|
|
|
require 'models/concerns/has_object_manager_attributes_examples'
|
2020-02-20 13:34:03 +00:00
|
|
|
require 'models/concerns/has_collection_update_examples'
|
2021-04-12 09:49:26 +00:00
|
|
|
require 'models/concerns/has_xss_sanitized_note_examples'
|
2019-01-22 16:35:01 +00:00
|
|
|
|
|
|
|
RSpec.describe Group, type: :model do
|
2021-07-12 08:31:37 +00:00
|
|
|
subject(:group) { create(:group) }
|
|
|
|
|
2019-01-24 10:13:04 +00:00
|
|
|
it_behaves_like 'ApplicationModel'
|
2019-01-28 06:04:05 +00:00
|
|
|
it_behaves_like 'CanBeImported'
|
2021-08-17 16:37:16 +00:00
|
|
|
it_behaves_like 'HasObjectManagerAttributes'
|
2020-02-20 13:34:03 +00:00
|
|
|
it_behaves_like 'HasCollectionUpdate', collection_factory: :group
|
2021-04-12 09:49:26 +00:00
|
|
|
it_behaves_like 'HasXssSanitizedNote', model_factory: :group
|
2019-01-22 16:35:01 +00:00
|
|
|
end
|