Add spree user as admin of Enterprise 2 in seed

This commit is contained in:
Pau Perez
2017-11-03 12:12:10 +01:00
committed by Rob H
parent c543dff2e1
commit caab3ea74d

View File

@@ -193,6 +193,8 @@ namespace :openfoodnetwork do
.where('spree_products.supplier_id = ?', enterprise2.id)
CreateOrderCycle.new(enterprise2, variants).call
EnterpriseRole.create!(user: Spree::User.first, enterprise: enterprise2)
end
# Creates an order cycle for the provided enterprise and selecting all the