factory_bot icon indicating copy to clipboard operation
factory_bot copied to clipboard

DefinitionProxy#method_missing: Forward given block to #association

Open grekko opened this issue 1 year ago • 0 comments

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.

grekko avatar Jun 13 '23 08:06 grekko