thoughtbot/factory_girl — Issue #282: nested attributes doubling up
Author: ariesandrada
Created: 2012-01-25 21:51:45+00:00
State: open

I have a model A which has many model B and I set model A to accept nested attributes of B. When I do:

Factory :a, :b_attributes => [{:key => value}]

it creates 2 identical B records instead of just 1 B record. This started happening on version 2.4.