text_module_spec.rb 547 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'models/application_model_examples'
  4. require 'models/concerns/can_csv_import_examples'
  5. require 'models/concerns/can_csv_import_text_module_examples'
  6. RSpec.describe TextModule, type: :model do
  7. it_behaves_like 'ApplicationModel', can_create_update: { unique_name: false }
  8. it_behaves_like 'CanCsvImport'
  9. it_behaves_like 'Association clears cache', association: :groups
  10. include_examples 'CanCsvImport - TextModule specific tests'
  11. end