trabajo-afectivo/spec/factories/online_notification.rb

20 lines
528 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
FactoryBot.define do
2017-05-05 09:16:47 +00:00
factory :online_notification do
transient do
o { Ticket.first }
end
object_lookup_id { ObjectLookup.by_name(o.class.name) }
o_id { o.id }
type_lookup_id { TypeLookup.by_name('updated') }
seen { false }
user_id { 1 }
created_by_id { 1 }
updated_by_id { 1 }
created_at { Time.zone.now }
updated_at { Time.zone.now }
2017-05-05 09:16:47 +00:00
end
end