summaryrefslogtreecommitdiff
path: root/spec/factories/customer_relations/contacts.rb
blob: 1896510d36287d5a4d28bcd53fad2a0e30c9d441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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