4e3516788f
FFaker can generate data that randomly break our test suite. This simplifies our factories and use sequences which are more predictive. Signed-off-by: Rémy Coutable <remy@rymai.me>
12 lines
257 B
Ruby
12 lines
257 B
Ruby
FactoryGirl.define do
|
|
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
|