activity_stream.rb 301 B

123456789101112
  1. FactoryBot.define do
  2. factory :activity_stream do
  3. transient do
  4. o { Ticket.first }
  5. end
  6. association :type, factory: :type_lookup
  7. activity_stream_object_id { ObjectLookup.by_name(o.class.name) }
  8. o_id { o.id }
  9. created_by_id { 1 }
  10. end
  11. end