Sha256: e2198bd32558ee1abc86ea3bea425c0dde19052762a13829aef833b30a466615
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 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 } association :performer, factory: :user association :approver, factory: :user association :supervisor, factory: :user association :quality_controller, factory: :user association :task_template association :work_product end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.25 | spec/factories/ecom/core/tasks.rb |