application_model_examples.rb 765 B

123456789101112131415
  1. require 'models/application_model/can_assets_examples'
  2. require 'models/application_model/can_associations_examples'
  3. require 'models/application_model/can_creates_and_updates_examples'
  4. require 'models/application_model/can_latest_change_examples'
  5. require 'models/application_model/can_lookup_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::CanAssociations'
  10. include_examples 'ApplicationModel::CanCreatesAndUpdates'
  11. include_examples 'ApplicationModel::CanLatestChange'
  12. include_examples 'ApplicationModel::CanLookup'
  13. include_examples 'ApplicationModel::ChecksImport'
  14. end