Sha256: 18c50f61d21d8efe22e8d45eed5f455f82a4ec398c1d542fa0b0e1f53a38f10e

Contents?: true

Size: 416 Bytes

Versions: 22

Compression:

Stored size: 416 Bytes

Contents

FactoryBot.define do
  factory :shipment_item, class: "Comee::Core::ShipmentItem" do
    sales_order_item
    quantity { 50 }
    shipment_status { Comee::Core::ItemStatus::INITIALIZED }
    status { Comee::Core::ShipmentItem.statuses[:active] }
    handover_date { Date.current.advance(days: 3) }
    delivery_date { Date.current.advance(days: 6) }
    pallet_no { Faker::Alphanumeric.alpha(number: 10) }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
comee_core-0.1.80 spec/factories/comee/core/shipment_items.rb
comee_core-0.1.79 spec/factories/comee/core/shipment_items.rb