You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
author { association :previous_author, factory: :author }, doesn't work either btw because it says "previous_author" key not found lol, not to mention if you have more than one author (previous_author and new_author) you cant have author and author specified twice.
The docs here use the worst example where the association happens to match the factory:
https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md#overriding-attributes
What if "author" is called "previous_author" on the model, I've tried every variation of explicitly specify the factory and it doesn't work.
eg: previous_author factory: :author { ... } doesn't work, previous_author { ... factory: :author } doesn't work etc. Is this just not possible?
The text was updated successfully, but these errors were encountered: