Make enterprise factory get it own address

This commit is contained in:
Rob H
2014-03-07 12:14:09 +11:00
parent dfcaab36fa
commit ea3bd86318

View File

@@ -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