Sha256: 577f632c3eddc669fdd9b3590b940836406fce0c5495cb5ce553919327bac642

Contents?: true

Size: 227 Bytes

Versions: 29

Compression:

Stored size: 227 Bytes

Contents

Factory.define(:line_item) do |record|
  record.quantity 1
  record.price { BigDecimal.new("10.00") }

  # associations:
  record.association(:order, :factory => :order)
  record.association(:variant, :factory => :variant)
end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
spree_core-0.70.7 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.6 lib/spree_core/testing_support/factories/line_item_factory.rb
apispree_core-0.0.0 lib/spree_core/testing_support/factories/line_item_factory.rb
My-Commerce_core-1.1.0 lib/spree_core/testing_support/factories/line_item_factory.rb
My-Commerce_core-1.0.0 lib/spree_core/testing_support/factories/line_item_factory.rb
MyCommerceapi-1.0.0 core/lib/spree_core/testing_support/factories/line_item_factory.rb
MyCommerce-0.0.3 core/lib/spree_core/testing_support/factories/line_item_factory.rb
rfcommerce_core-0.0.3 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.60.6 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.5 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.4 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.60.5 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.3 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.2 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.50.4 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.60.4 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.50.3 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.60.3 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.1 lib/spree_core/testing_support/factories/line_item_factory.rb
spree_core-0.70.0 lib/spree_core/testing_support/factories/line_item_factory.rb