I'm trying to use factory for a test case, but the model I am creating via
the factory depends on another model, how do you setup a factory like this?

Model Account has a location_id attribute (where Location is another model)

So how do I set it?

FactoryGirl..... do

  location_id  ????????/

end
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to