Sha256: f3eaf64620d026e997d9c5a5a02c407fe31f47914af05c9dbb4315e0f390555d

Contents?: true

Size: 508 Bytes

Versions: 24

Compression:

Stored size: 508 Bytes

Contents

FactoryBot.define do
  factory :maintenance_service_order, class: Ecom::Core::MaintenanceServiceOrder do
    title { FFaker::Name.name }
    description { FFaker::Name.name }
    start_date { Date.yesterday }
    end_date { Date.today }
    approved { false }
    status { 'New' }
    remark { FFaker::Name.name }
    current_reading { 1.5 }
    association :equipment_item
    association :maintenance_type
    association :prepared_by, factory: :user
    association :approved_by, factory: :user
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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