factory_bot
factory_bot copied to clipboard
DefinitionProxy#method_missing: Forward given block to #association
Replacement for the prematurely closed PR #1518
Why:
When defining an association the block-argument will be ignored when also providing a factory
-key on the association definition.
This behaviour might be unexpected, so we should raise an error that the passed block is unexpected/ignored.