15 lines
384 B
Ruby
15 lines
384 B
Ruby
|
FactoryBot.define do
|
||
|
factory :'karma/activity_log', aliases: %i[karma_activity_log] do
|
||
|
transient do
|
||
|
o { Ticket.first }
|
||
|
end
|
||
|
|
||
|
o_id { o.id }
|
||
|
object_lookup_id { ObjectLookup.by_name(o.class.name) }
|
||
|
user_id { 1 }
|
||
|
activity_id { Karma::Activity.pluck(:id).sample }
|
||
|
score { 100 }
|
||
|
score_total { 100 }
|
||
|
end
|
||
|
end
|