chat_names.rb 257 Bytes
Newer Older
1 2 3 4 5 6 7 8
FactoryGirl.define do
  factory :chat_name, class: ChatName do
    user factory: :user
    service factory: :service

    team_id 'T0001'
    team_domain 'Awesome Team'

9 10
    sequence(:chat_id) { |n| "U#{n}" }
    chat_name { generate(:username) }
11 12
  end
end