Sha256: eb8825987b760737ddf650558e46bb4ae3eb2aa4b076c20f1a8ef0bcc1d51e45

Contents?: true

Size: 219 Bytes

Versions: 5

Compression:

Stored size: 219 Bytes

Contents

FactoryBot.define do
  factory :sales_order_item, class: "Comee::Core::SalesOrderItem" do
    sales_order
    product
    quantity { 100 }
    price { 50 }
    delivery_date { Date.current.advance(month: 1) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comee_core-0.1.17 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.16 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.15 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.14 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.13 spec/factories/comee/core/sales_order_items.rb