debian-mirror-gitlab/spec/factories/chat_names.rb

13 lines
256 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
FactoryBot.define do
2017-08-17 22:00:37 +05:30
factory :chat_name, class: ChatName do
user factory: :user
service factory: :service
team_id 'T0001'
team_domain 'Awesome Team'
sequence(:chat_id) { |n| "U#{n}" }
chat_name { generate(:username) }
end
end