Open alexandru-calinoiu opened 6 years ago
Here is what I am trying to build:
Factory[:shift, shift_positions: [ Factory[:shift_position], Factory[:shift_position] ] ]
My factory definitions are:
Factory.define :shift do |f| f.association(:shift_positions, count: 2) end
Factory.define :shift_position do |f| f.association(:shift) end
The problem is the top code will return the shift_positions code empty.
shift_positions
Here is what I am trying to build:
My factory definitions are:
The problem is the top code will return the
shift_positions
code empty.