transient associations can only be set if the association is named after the model. In any other case, we have no way to know which model should be associated.However, setting transient attributes to string values is no longer supported for transient attribute that are named like a record. I don't think that is an issue.
The code was tested on a real world project
This commit also replaces the FactoryBot mocks with actual factories in specs.
For FactoryGirl < 4, transient attributes are declared within a ignore block. The code works all the same.
Notes
ignore
block. The code works all the same.