Sha256: 70bb0222601b262a312a0ce7e8ba6572b2a660a1436efba3e700b35239a15f59

Contents?: true

Size: 226 Bytes

Versions: 4

Compression:

Stored size: 226 Bytes

Contents

FactoryGirl.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

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-3.4.1 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.0 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.0.rc2 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.4.0.rc1 lib/spree/testing_support/factories/line_item_factory.rb