2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2019-02-26 11:00:46 +00:00
|
|
|
require 'models/application_model/can_assets_examples'
|
|
|
|
require 'models/application_model/can_associations_examples'
|
2019-03-14 11:03:20 +00:00
|
|
|
require 'models/application_model/can_creates_and_updates_examples'
|
2019-06-27 10:01:40 +00:00
|
|
|
require 'models/application_model/can_latest_change_examples'
|
2019-10-21 10:44:52 +00:00
|
|
|
require 'models/application_model/can_lookup_examples'
|
2019-01-22 16:35:01 +00:00
|
|
|
require 'models/application_model/checks_import_examples'
|
|
|
|
|
2019-02-26 11:00:46 +00:00
|
|
|
RSpec.shared_examples 'ApplicationModel' do |options = {}|
|
|
|
|
include_examples 'ApplicationModel::CanAssets', options[:can_assets]
|
|
|
|
include_examples 'ApplicationModel::CanAssociations'
|
2019-03-14 11:03:20 +00:00
|
|
|
include_examples 'ApplicationModel::CanCreatesAndUpdates'
|
2019-06-27 10:01:40 +00:00
|
|
|
include_examples 'ApplicationModel::CanLatestChange'
|
2019-10-21 10:44:52 +00:00
|
|
|
include_examples 'ApplicationModel::CanLookup'
|
2019-02-04 09:47:35 +00:00
|
|
|
include_examples 'ApplicationModel::ChecksImport'
|
2019-01-22 16:35:01 +00:00
|
|
|
end
|