Sha256: c5ac6e78bd4b951795cf97ce00fee218f7b050de1a733e14ba0e01aa88b34685

Contents?: true

Size: 1.81 KB

Versions: 11

Compression:

Stored size: 1.81 KB

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
FactoryGirl.define do
  factory :contact do
    user                
    lead                
    assigned_to         nil
    reports_to          nil
    first_name          { Faker::Name.first_name }
    last_name           { Faker::Name.last_name }
    access              "Public"
    title               { FactoryGirl.generate(:title) }
    department          { Faker::Name.name + " Dept." }
    source              { %w(campaign cold_call conference online referral self web word_of_mouth other).sample }
    email               { Faker::Internet.email }
    alt_email           { Faker::Internet.email }
    phone               { Faker::PhoneNumber.phone_number }
    mobile              { Faker::PhoneNumber.phone_number }
    fax                 { Faker::PhoneNumber.phone_number }
    blog                { FactoryGirl.generate(:website) }
    facebook            { FactoryGirl.generate(:website) }
    linkedin            { FactoryGirl.generate(:website) }
    twitter             { FactoryGirl.generate(:website) }
    do_not_call         false
    born_on             "1992-10-10"
    background_info     { Faker::Lorem.paragraph[0,255] }
    deleted_at          nil
    updated_at          { FactoryGirl.generate(:time) }
    created_at          { FactoryGirl.generate(:time) }
  end


  factory :contact_opportunity do
    contact             
    opportunity         
    role                "foo"
    deleted_at          nil
    updated_at          { FactoryGirl.generate(:time) }
    created_at          { FactoryGirl.generate(:time) }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 spec/factories/contact_factories.rb
fat_free_crm-0.13.5 spec/factories/contact_factories.rb
fat_free_crm-0.13.4 spec/factories/contact_factories.rb
fat_free_crm-0.13.3 spec/factories/contact_factories.rb
fat_free_crm-0.13.2 spec/factories/contact_factories.rb
fat_free_crm-0.12.3 spec/factories/contact_factories.rb
fat_free_crm-0.12.2 spec/factories/contact_factories.rb
fat_free_crm-0.13.1 spec/factories/contact_factories.rb
fat_free_crm-0.12.1 spec/factories/contact_factories.rb
fat_free_crm-0.13.0 spec/factories/contact_factories.rb
fat_free_crm-0.12.0 spec/factories/contact_factories.rb