From 7052654b255ee13b7daf621f117d91fb14afba2d Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Fri, 5 Aug 2011 15:45:05 -0700 Subject: [PATCH] Update factorygirl, fix the searcheable_person factory to work with factory_girl 2.0.3 --- Gemfile.lock | 2 +- spec/factories.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6ac7368bf..9f27fc630 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -174,7 +174,7 @@ GEM eventmachine (0.12.10) excon (0.2.4) extlib (0.9.15) - factory_girl (2.0.2) + factory_girl (2.0.3) factory_girl_rails (1.1.0) factory_girl (~> 2.0.0) railties (>= 3.0.0) diff --git a/spec/factories.rb b/spec/factories.rb index a294c4362..bf6640a67 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -30,7 +30,7 @@ end Factory.define :searchable_person, :parent => :person do |p| p.after_build do |person| - person.profile.searchable = true + person.profile = Factory.build(:profile, :person => person, :searchable => true) end end