diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-08-06 02:45:05 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-08-06 02:45:05 +0400 |
commit | 7052654b255ee13b7daf621f117d91fb14afba2d (patch) | |
tree | a6b45af08a71f0da5598050c2d3b3051f693977f /spec | |
parent | c7360fe6cec203db649b2dfa9cdd6880ec44dfaa (diff) |
Update factorygirl, fix the searcheable_person factory to work with factory_girl 2.0.3
Diffstat (limited to 'spec')
-rw-r--r-- | spec/factories.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |