1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00
thoughtbot--factory_bot_rails/lib/factory_bot_rails
Daniel Colson 4e730548cb Introduce definition file path configuration
Fixes #165 and closes #166

Currently the only way to customize the factory definition file
paths is to do it in an initializer right after the
"factory_bot.set_factory_paths" initializer. With this commit,
we can customize factory definition file paths by
setting `config.factory_bot.definition_file_paths`
in config/application.rb or the appropriate environment file.

Once we update the documentation to include this new configuration, we
should be able to close #149 and #180 as well, since using this
configuration can replace the initializer solution for sharing factories
in an engine (the initializer solution will still work, but with the new
configuration you don't need to know anything about the
fbr railtie).

This will also allow us to close #192, since we can use this
configuration with an empty array to disable automatic loading
of factories in development.
2018-09-14 20:09:10 +00:00
..
generators Rename all girl -> bot 2017-10-20 18:21:52 -04:00
definition_file_paths.rb Allow reloading of factory definitions 2018-09-08 02:21:47 +00:00
generator.rb Remove unneeded conditional for app_generators 2018-09-14 19:52:24 +00:00
railtie.rb Introduce definition file path configuration 2018-09-14 20:09:10 +00:00
reloader.rb Allow reloading of factory definitions 2018-09-08 02:21:47 +00:00