Sha256: 80fcd2d1f07494c5499ec7a2cbb371e6c2b1330745b3e763bc2a5d13df226b58

Contents?: true

Size: 955 Bytes

Versions: 8

Compression:

Stored size: 955 Bytes

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 :task do
    user
    asset nil
    assigned_to nil
    completed_by nil
    name                { FFaker::Lorem.sentence[0, 64] }
    priority nil
    category            { %w[call email follow_up lunch meeting money presentation trip].sample }
    bucket "due_asap"
    due_at              { FactoryGirl.generate(:time) }
    background_info     { FFaker::Lorem.paragraph[0, 255] }
    completed_at nil
    deleted_at nil
    updated_at          { FactoryGirl.generate(:time) }
    created_at          { FactoryGirl.generate(:time) }
  end

  factory :completed_task, parent: :task do
    completed_at { Date.yesterday }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fat_free_crm-0.15.2 spec/factories/task_factories.rb
fat_free_crm-0.16.4 spec/factories/task_factories.rb
fat_free_crm-0.15.1 spec/factories/task_factories.rb
fat_free_crm-0.16.3 spec/factories/task_factories.rb
fat_free_crm-0.16.2 spec/factories/task_factories.rb
fat_free_crm-0.16.1 spec/factories/task_factories.rb
fat_free_crm-0.16.0 spec/factories/task_factories.rb
fat_free_crm-0.15.0 spec/factories/task_factories.rb