Skip to content
Extraits de code Groupes Projets
Valider 7052654b rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

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

parent c7360fe6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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)
......
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter