trabajo-afectivo/spec/factories/cti/caller_id.rb
2022-01-01 14:38:12 +01:00

16 lines
395 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
FactoryBot.define do
factory :'cti/caller_id', aliases: %i[cti_caller_id caller_id] do
caller_id { '1234567890' }
level { :known }
object { o.class.name.to_sym }
o_id { o.id }
user_id { user.id }
transient do
user { User.last }
o { User.last }
end
end
end