Welcome to mirror list, hosted at ThFree Co, Russian Federation.

chat_names.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee29f0fa0e42fdf02dcf14dcbb49cdb0c252d700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

FactoryBot.define do
  factory :chat_name, class: 'ChatName' do
    user

    team_id { 'T0001' }
    team_domain { 'Awesome Team' }

    token { SecureRandom.uuid }

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