activity_log.rb 384 B

1234567891011121314
  1. FactoryBot.define do
  2. factory :'karma/activity_log', aliases: %i[karma_activity_log] do
  3. transient do
  4. o { Ticket.first }
  5. end
  6. o_id { o.id }
  7. object_lookup_id { ObjectLookup.by_name(o.class.name) }
  8. user_id { 1 }
  9. activity_id { Karma::Activity.pluck(:id).sample }
  10. score { 100 }
  11. score_total { 100 }
  12. end
  13. end