Sha256: 8816d01d05e295294c84990a21ed2d9bdc550afcfdead8d66a75a1bc97bb45c9

Contents?: true

Size: 387 Bytes

Versions: 8

Compression:

Stored size: 387 Bytes

Contents

FactoryBot.define do
  factory :back_order_item, class: "Comee::Core::BackOrderItem" do
    back_order
    product
    requested_quantity { 5 }
    requested_unit_price { 50 }
    supplier_quantity { 5 }
    supplier_unit_price { 55 }
    from { Date.current }
    to { Date.current.advance(months: 1) }
    item_status { Comee::Core::BackOrderItem.item_statuses[:available] }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comee_core-0.1.29 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.28 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.27 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.26 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.25 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.24 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.23 spec/factories/comee/core/back_order_items.rb
comee_core-0.1.22 spec/factories/comee/core/back_order_items.rb