Any know issues with the dynamic create_<association> method and factory_girl?

I have an object created by a factory:

   @order = Factory.create :payable_order_with_line_items

and then I do:

   @order.create_ship_address(<attributes for ship_address)

then the ship_address object is persisted but the association is not made (e.g. @order.ship_address_id is nil).

If I instead create the Address object and then say @order.update_attributes(:ship_address => address), everything is fine.

Is this some issue with mixing factory-created objects with non? I can't imagine that's an issue...

Thanks,

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

Reply via email to