application_model_examples.rb 759 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'models/application_model/can_assets_examples'
  3. require 'models/application_model/can_creates_and_updates_examples'
  4. require 'models/application_model/can_param_examples'
  5. require 'models/application_model/has_cache_examples'
  6. require 'models/application_model/checks_import_examples'
  7. RSpec.shared_examples 'ApplicationModel' do |options = {}|
  8. include_examples 'ApplicationModel::CanAssets', options[:can_assets]
  9. include_examples 'ApplicationModel::CanCreatesAndUpdates', options[:can_create_update]
  10. include_examples 'ApplicationModel::CanParam', options[:can_param]
  11. include_examples 'ApplicationModel::ChecksImport'
  12. include_examples 'ApplicationModel::HasCache'
  13. end