debian-mirror-gitlab/spec/factories/customer_relations/contacts.rb
2022-11-25 23:54:43 +05:30

19 lines
350 B
Ruby

# 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
trait :inactive do
state { :inactive }
end
end
end