Sha256: 6d19913e398bc3b6ba715abf50ec7efcece145811985d7ee1acad420b241a5b3

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

FactoryBot.define do
  factory :contact, class: BaseCRM::Contact do

    description { "I know him via Tom" }
    email { "mark#{SecureRandom.hex}@example.com" }
    facebook { "mjohnson" }
    fax { "+44-208-1234567" }
    first_name { Faker::Name.first_name }
    industry { "Design Services" }
    is_organization { false }
    last_name { Faker::Name.last_name }
    linkedin { "mjohnson" }
    mobile { "508-778-6516" }
    name { Faker::Name.name }
    phone { "508-778-6516" }
    skype { "mjohnson" }
    tags { ["important"] }
    title { "CEO" }
    twitter { "mjohnson" }
    website { "www.example.com" }


    to_create do |contact|
      client.contacts.create(contact)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basecrm-2.0.0 spec/factories/contact.rb
basecrm-1.3.10 spec/factories/contact.rb
basecrm-1.3.9 spec/factories/contact.rb