store.rb 465 B

12345678910111213141516171819202122
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :store do
  4. object { 'UploadCache' }
  5. o_id { 1 }
  6. preferences { {} }
  7. created_by_id { 1 }
  8. txt
  9. trait :txt do
  10. filename { 'test.txt' }
  11. data { 'some content' }
  12. end
  13. trait :image do
  14. filename { '1x1.png' }
  15. data { Rails.root.join('test/data/image/1x1.png').binread }
  16. end
  17. end
  18. end