I have some static data created like :
puts "CREATE AREAS"
west = Area.create(name: "West)
north = Area.create(name: "North)
east = Area.create(name: "East)
south = Area.create(name: "South)
..
and I wrote
FactoryGirl.define do
factory :partner do
area
......
phone {....}
address { ...}
--Individuals over processes. Interactions over tools. Agile Rails training from thoughtbot, the makers of Clearance, Shoulda, & Factory Girl:You received this message because you are subscribed to the "factory_girl" mailing list.To post to this group, send email to factor...@googlegroups.comTo unsubscribe from this group, send email toFor more options, visit this group at