Sha256: e108b1f92f38d27dd4f529702433bd913328b012a5d2f43b82808cb5eb77f3f1

Contents?: true

Size: 825 Bytes

Versions: 16

Compression:

Stored size: 825 Bytes

Contents

FactoryBot.define do
  factory :task, class: Ecom::Core::Task do
    sequence :code do |n|
      "TCode#{n}"
    end
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    start_date { Date.yesterday }
    end_date { Date.today }
    status { :new }
    percent_completed { 0 }
    remark { FFaker::Name.name }
    inspection_submission_date { Date.today }
    inspection_status { Ecom::Core::Task::NOT_INSPECTED }
    change_order { false }
    change_order_for { nil }
    percentage_contribution { nil }
    quantity { nil }
    association :performer, factory: :user
    association :client_consultant, factory: :user
    association :foreman, factory: :user
    association :inspector, factory: :user
    association :task_template
    association :work_product
    association :work_package
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.13 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.12 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.11 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.10 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.9 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.8 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.7 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.6 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.5 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.4 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.3 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.2 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.1 spec/factories/ecom/core/tasks.rb
ecom_core-1.3.0 spec/factories/ecom/core/tasks.rb
ecom_core-1.2.36 spec/factories/ecom/core/tasks.rb