debian-mirror-gitlab/spec/factories/customer_relations/contacts.rb

20 lines
350 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :contact, class: 'CustomerRelations::Contact' do
group
first_name { generate(:name) }
last_name { generate(:name) }
2022-01-26 12:08:38 +05:30
email { generate(:email) }
2021-11-11 11:23:49 +05:30
trait :with_organization do
organization
end
2022-11-25 23:54:43 +05:30
trait :inactive do
state { :inactive }
end
2021-11-11 11:23:49 +05:30
end
end