1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec
Daniel Colson ebc4cd5b84 Make the evaluator instance public
closes 

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
2020-07-08 12:41:06 -04:00
..
acceptance Make the evaluator instance public 2020-07-08 12:41:06 -04:00
factory_bot Run standardrb 2020-06-10 17:11:39 -04:00
support Run standardrb 2020-06-10 17:11:39 -04:00
factory_bot_spec.rb Run standardrb 2020-06-10 17:11:39 -04:00
spec_helper.rb Adjust use_parent_strategy safely in specs 2019-08-12 18:54:53 +01:00