application_model_examples.rb 842 B

1234567891011121314151617
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. require 'models/application_model/can_assets_examples'
  3. require 'models/application_model/can_associations_examples'
  4. require 'models/application_model/can_creates_and_updates_examples'
  5. require 'models/application_model/can_latest_change_examples'
  6. require 'models/application_model/can_lookup_examples'
  7. require 'models/application_model/checks_import_examples'
  8. RSpec.shared_examples 'ApplicationModel' do |options = {}|
  9. include_examples 'ApplicationModel::CanAssets', options[:can_assets]
  10. include_examples 'ApplicationModel::CanAssociations'
  11. include_examples 'ApplicationModel::CanCreatesAndUpdates'
  12. include_examples 'ApplicationModel::CanLatestChange'
  13. include_examples 'ApplicationModel::CanLookup'
  14. include_examples 'ApplicationModel::ChecksImport'
  15. end