From ea3bd86318c393a6027119fddb0935b3e13ad507 Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 7 Mar 2014 12:14:09 +1100 Subject: [PATCH] Make enterprise factory get it own address --- spec/factories.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/factories.rb b/spec/factories.rb index f036156402..2084ff7221 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -82,7 +82,7 @@ FactoryGirl.define do description 'enterprise' long_description '

Hello, world!

This is a paragraph.

' email 'enterprise@example.com' - address { Spree::Address.first || FactoryGirl.create(:address) } + address { FactoryGirl.create(:address) } end factory :supplier_enterprise, :parent => :enterprise do