online_notification.rb 451 B

1234567891011121314151617
  1. FactoryBot.define do
  2. factory :online_notification do
  3. transient do
  4. o { Ticket.first }
  5. end
  6. object_lookup_id { ObjectLookup.by_name(o.class.name) }
  7. o_id { o.id }
  8. type_lookup_id { TypeLookup.by_name('updated') }
  9. seen { false }
  10. user_id { 1 }
  11. created_by_id { 1 }
  12. updated_by_id { 1 }
  13. created_at { Time.zone.now }
  14. updated_at { Time.zone.now }
  15. end
  16. end