caller_id.rb 318 B

1234567891011121314
  1. FactoryBot.define do
  2. factory :'cti/caller_id', aliases: %i[cti_caller_id caller_id] do
  3. caller_id { '1234567890' }
  4. level { :known }
  5. object { o.class.name.to_sym }
  6. o_id { o.id }
  7. user_id { user.id }
  8. transient do
  9. user { User.last }
  10. o { User.last }
  11. end
  12. end
  13. end