The following is my fabricator:
Fabricator(:my_fabricator) do
my_first_association
my_second_association
end
The problem here is that I need to pass my_first_association to my_second_association. Couldn't find anything related in the docs.
The following is my fabricator:
Fabricator(:my_fabricator) do
my_first_association
my_second_association
end
The problem here is that I need to pass my_first_association to my_second_association. Couldn't find anything related in the docs.
Copyright © 2021 Jogjafile Inc.
If you pass a block value you can inspect the attributes hash of the object being generated.