Sha256: 5e6091766f83f96b3b7021dd57afd5464639f2f12862ef28a1971cc287fcfd9d

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 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(months: 1) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comee_core-0.1.22 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.21 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.20 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.19 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.18 spec/factories/comee/core/sales_order_items.rb