Update factorygirl, fix the searcheable_person factory to work with factory_girl 2.0.3

This commit is contained in:
Raphael Sofaer 2011-08-05 15:45:05 -07:00
parent c7360fe6ce
commit 7052654b25
2 changed files with 2 additions and 2 deletions

View file

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

View file

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