I have this fabricator for a Rails model:
Fabricator(:foo) do
transient n_iterations: 5
bar(count: :n_iterations) { Fabricate(:bar) }
end
However, this doesn't work as hoped. I've tried count: n_iterations
, count: attrs[:n_iterations]
, and count: attrs[n_iterations]
, and nothing seems to work. This seems like it should be a relatively simple thing to do though.
Any thoughts would be much appreciated.