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 2 years ago • 0 comments

Addresses #1503

Why

Providing an options factory-key with an assocation definition effectively ignores a given block. Users might be confused by this behaviour, so we might want to raise an error.

Considerations

As @composerinteralia pointed out, this is a breaking change and might need to wait for FactoryBot 7.0.

I am not sure about the process here though. Happy to learn how this is organised.

grekko avatar Oct 11 '21 20:10 grekko