Skip to content

Commit

Permalink
Merge pull request #2493 from HugsDaniel/2433-change-from-simple-prod…
Browse files Browse the repository at this point in the history
…uct-to-base-product

Reimplement Spree's simple_product in OFN factory
  • Loading branch information
mkllnk authored Jul 30, 2018
2 parents 43bf729 + ce46f3d commit f04903b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@
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


Expand Down

0 comments on commit f04903b

Please sign in to comment.