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

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

FactoryBot.define do
  factory :contact, class: 'CustomerRelations::Contact' do
    group

    first_name { generate(:name) }
    last_name { generate(:name) }
    email { generate(:email) }

    trait :with_organization do
      organization
    end
  end
end