Add sample order to sample data

This commit is contained in:
Luis Ramos
2020-05-05 22:27:27 +01:00
parent e04b18c70e
commit 4083da5b16
2 changed files with 65 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ require "tasks/sample_data/product_factory"
require "tasks/sample_data/shipping_method_factory"
require "tasks/sample_data/taxon_factory"
require "tasks/sample_data/user_factory"
require "tasks/sample_data/order_factory"
# The sample data generated by this task is supposed to save some time during
# manual testing. It is not meant to be complete, but we try to improve it
@@ -49,6 +50,8 @@ namespace :ofn do
CustomerFactory.new.create_samples(users)
GroupFactory.new.create_samples
OrderFactory.new.create_samples
end
def seeded?