Sha256: a182c8525cbb789e3477f09a9723d1581baa366c3ec822692b019b30ae5026a3

Contents?: true

Size: 801 Bytes

Versions: 61

Compression:

Stored size: 801 Bytes

Contents

FactoryBot.define do
  factory :work_product, class: 'Ecom::Core::WorkProduct' do
    code { FFaker::Name.unique.name }
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    design_reference_no { FFaker::Name.name }
    dimension { [{ label: 'Length', name: 'length', value: 12 }] }
    association :task
    association :work_product_template
    association :project
    assignment_status { :unassigned }
    task_status { :new }
    percent_completed { FFaker::Random.rand(1..100) }
    remark { FFaker::Name.name }
    association :performer, factory: :user
    association :approver, factory: :user
    association :supervisor, factory: :user
    association :quality_controller, factory: :user
    start_date { 1.day.ago }
    completion_date { Time.now.next_week }
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ecom_core-1.1.14 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.13 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.12 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.11 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.10 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.9 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.8 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.7 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.6 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.5 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.4 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.3 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.2 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.1 spec/factories/ecom/core/work_products.rb
ecom_core-1.1.0 spec/factories/ecom/core/work_products.rb
ecom_core-1.0.25 spec/factories/ecom/core/work_products.rb
ecom_core-1.0.24 spec/factories/ecom/core/work_products.rb
ecom_core-1.0.23 spec/factories/ecom/core/work_products.rb
ecom_core-1.0.22 spec/factories/ecom/core/work_products.rb
ecom_core-1.0.21 spec/factories/ecom/core/work_products.rb