thoughtbot--factory_bot/spec
Daniel Colson 3e1a941347 Do not reset use_parent_strategy on reload
Before this PR, `use_parent_strategy` was set on the configuration
instance. Since `FactoryBot.reload` wipes out the configuration, it also
ends up resetting `use_parent_strategy` back to `nil`.

This can cause problems when using factory_bot_rails with Spring, since
it calls `FactoryBot.reload` each time Spring forks. If
`use_parent_strategy` is set in a file that Spring preloads, like in an
initializer, then the value will get wiped out.

With this PR, we set `use_parent_strategy` directly on FactoryBot,
rather than on the configuration instance, and so reloading no longer
has any effect.
2019-01-04 15:47:32 -05:00
..
acceptance Do not reset use_parent_strategy on reload 2019-01-04 15:47:32 -05:00
factory_bot Remove problematic did_you_mean spec 2018-12-16 22:48:06 -05:00
support Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
factory_bot_spec.rb Remove unnecessary spec_helper requires 2018-05-21 18:03:28 +01:00
spec_helper.rb Do not reset use_parent_strategy on reload 2019-01-04 15:47:32 -05:00