Sha256: 24716f555f8fb2b567b92cccc45a17be6d0fe8238f6bac436b00ba07a07eb631

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 Bytes

Contents

FactoryBot.define do
  factory :work_order, class: Ecom::Core::WorkOrder do
    name { FFaker::Name.unique.name }
    association :work_package
    association :assigned_to, factory: :crew
    association :generated_by, factory: :user
    start_date { (Time.now + 1.day).to_s }
    end_date { (Time.now + 1.month).to_s }
    status { Ecom::Core::WorkOrder::STATUSES.sample }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.13 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.12 spec/factories/ecom/core/work_orders.rb