Sha256: 9ca659bb0c0e49831ead6a8c1f3e2982b39ca62cdf72a1d5cdc33321a03faac6

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 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 :campaign do
    user
    name                { Faker::Lorem.sentence[0,64] }
    assigned_to         nil
    access              "Public"
    status              { %w(planned started completed planned started completed on_hold called_off).sample }
    budget              { rand(500) }
    target_leads        { rand(200) }
    target_conversion   { rand(20) }
    target_revenue      { rand(1000) }
    leads_count         { rand(200) }
    opportunities_count { rand(20) }
    revenue             { rand(1000) }
    ends_on             { FactoryGirl.generate(:date) }
    starts_on           { FactoryGirl.generate(:date) }
    objectives          { Faker::Lorem.paragraph[0,255] }
    background_info     { Faker::Lorem.paragraph[0,255] }
    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/campaign_factories.rb
fat_free_crm-0.13.5 spec/factories/campaign_factories.rb
fat_free_crm-0.13.4 spec/factories/campaign_factories.rb
fat_free_crm-0.13.3 spec/factories/campaign_factories.rb
fat_free_crm-0.13.2 spec/factories/campaign_factories.rb
fat_free_crm-0.12.3 spec/factories/campaign_factories.rb
fat_free_crm-0.12.2 spec/factories/campaign_factories.rb
fat_free_crm-0.13.1 spec/factories/campaign_factories.rb
fat_free_crm-0.12.1 spec/factories/campaign_factories.rb
fat_free_crm-0.13.0 spec/factories/campaign_factories.rb
fat_free_crm-0.12.0 spec/factories/campaign_factories.rb