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
I had an issue where it appeared that callbacks weren't being inherited on my child factories, but after some investigation the issue appears to be that :parent just gets ignored if a factory is defined within another factory block.
When running my tests, it appears that :staffed_event inherits from :event instead of :structured_event. At the very least, it seems to be missing the callback from :structured_event.
I probably shouldn't be mixing declaration styles like this, but if I choose to do so anyway, I'd expect :parent to be honored.
The text was updated successfully, but these errors were encountered:
I had an issue where it appeared that callbacks weren't being inherited on my child factories, but after some investigation the issue appears to be that :parent just gets ignored if a factory is defined within another factory block.
When running my tests, it appears that :staffed_event inherits from :event instead of :structured_event. At the very least, it seems to be missing the callback from :structured_event.
I probably shouldn't be mixing declaration styles like this, but if I choose to do so anyway, I'd expect :parent to be honored.
The text was updated successfully, but these errors were encountered: