mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
Make enterprise factory get it own address
This commit is contained in:
@@ -82,7 +82,7 @@ FactoryGirl.define do
|
||||
description 'enterprise'
|
||||
long_description '<p>Hello, world!</p><p>This is a paragraph.</p>'
|
||||
email 'enterprise@example.com'
|
||||
address { Spree::Address.first || FactoryGirl.create(:address) }
|
||||
address { FactoryGirl.create(:address) }
|
||||
end
|
||||
|
||||
factory :supplier_enterprise, :parent => :enterprise do
|
||||
|
||||
Reference in New Issue
Block a user