Sha256: 0e5d3c8422be45f96aac005f3512cd301b67deee386a9d70b06f94f01696e505

Contents?: true

Size: 254 Bytes

Versions: 46

Compression:

Stored size: 254 Bytes

Contents

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
spree_core-3.1.14 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.13 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.12 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.11 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.10 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.9 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.8 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.7 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.6 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.5 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.4 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.3 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.2 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.0.10 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.1 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.0 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.0.rc4 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.0.9 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.0.rc3 lib/spree/testing_support/factories/line_item_factory.rb
spree_core-3.1.0.rc2 lib/spree/testing_support/factories/line_item_factory.rb