ssl_certificates.rb 334 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :ssl_certificate do
  4. transient do
  5. fixture { nil }
  6. end
  7. # Use existing fixture files from smime folder.
  8. certificate { Rails.root.join("spec/fixtures/files/smime/#{fixture}.crt").read if fixture }
  9. end
  10. end