mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
![]() closes #1309 It has come up several times over the years that folks want direct access to the evaluator instance, in most cases to build up more complex networks of associations. Some folks are already doing this with the less public `@instance` instance variable. Given that this is such a minimal change, and it makes the library more flexible for these more complex use cases, this commit adds an `attr_reader` for the evaluator instance. Now folks can reference it without reaching into the private api. Documentation to follow as part of https://github.com/thoughtbot/factory_bot/issues/1268 |
||
---|---|---|
.. | ||
acceptance | ||
factory_bot | ||
support | ||
factory_bot_spec.rb | ||
spec_helper.rb |