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

15 lines
297 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
FactoryBot.define do
2020-03-13 15:44:24 +05:30
factory :chat_name, class: 'ChatName' do
2017-08-17 22:00:37 +05:30
user factory: :user
service factory: :service
2019-12-21 20:55:43 +05:30
team_id { 'T0001' }
team_domain { 'Awesome Team' }
2017-08-17 22:00:37 +05:30
sequence(:chat_id) { |n| "U#{n}" }
chat_name { generate(:username) }
end
end