Merge pull request #2493 from HugsDaniel/2433-change-from-simple-product-to-base-product

Reimplement Spree's simple_product in OFN factory
This commit is contained in:
Maikel
2018-07-31 07:40:42 +10:00
committed by GitHub

View File

@@ -453,6 +453,10 @@ FactoryBot.define do
Spree::Image.create(attachment: image, viewable_id: product.master.id, viewable_type: 'Spree::Variant')
end
end
factory :simple_product, parent: :base_product do
on_hand 5
end
end