Sha256: 7faf5d8de18ccce7d3a7159c7e7cd2e0f848a66bd70aeeee8632ead809350e11

Contents?: true

Size: 225 Bytes

Versions: 16

Compression:

Stored size: 225 Bytes

Contents

FactoryBot.define do
  factory :line_item, class: Spree::LineItem do
    quantity 1
    price { BigDecimal.new('10.00') }
    order
    transient do
      association :product
    end
    variant { product.master }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_core-3.4.6 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.6 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.5 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.4 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.3 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.2 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.1 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.0 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.5.0 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.6.0.rc1 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.5.0.rc2 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.5.0.rc1 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.5 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.4 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.3 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.2 lib/spree/testing_support/factories/line_item_factory.rb