Sha256: 87a40f83bc859538a2cebb7f2f450c6e7728f54646e4aa0bab7a58addcf874e0

Contents?: true

Size: 355 Bytes

Versions: 17

Compression:

Stored size: 355 Bytes

Contents

FactoryBot.define do
  factory :work_order, class: Ecom::Core::WorkOrder do
    name { FFaker::Name.unique.name }
    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

17 entries across 17 versions & 1 rubygems

Version Path
ecom_core-1.3.11 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.10 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.9 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.8 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.7 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.6 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.5 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.4 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.3 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.2 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.1 spec/factories/ecom/core/work_orders.rb
ecom_core-1.3.0 spec/factories/ecom/core/work_orders.rb
ecom_core-1.2.36 spec/factories/ecom/core/work_orders.rb
ecom_core-1.2.35 spec/factories/ecom/core/work_orders.rb
ecom_core-1.2.34 spec/factories/ecom/core/work_orders.rb
ecom_core-1.2.33 spec/factories/ecom/core/work_orders.rb
ecom_core-1.2.32 spec/factories/ecom/core/work_orders.rb