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/spec/factory_bot_rails
yuuji.yaginuma 9b83f482b5 Do not register a reloader when file paths not exist
If all the paths specified in `FactoryBot.definition_file_paths` do not
exist, an empty array is passed to the reloader.

If an empty array is specified, reloader passes it to `Listen.to` as it
is. This causes the application root to be watched and `node_modules` to
become a target of listening.

The behavior when an empty array is passed to reloader depends on the
Rails side. Fixes to not register a reloader when file paths do not exist
consistent behavior regardless of Rails side.

Fixes #328.
2019-04-09 10:39:51 -04:00
..
definition_file_paths_spec.rb Do not register a reloader when file paths not exist 2019-04-09 10:39:51 -04:00
railtie_spec.rb Always execute a reload when Rails triggers one (instead of just on update) to prevent doubly-defined constants errors in factories when using Spring 2019-04-05 13:34:15 -04:00
reloader_spec.rb Do not register a reloader when file paths not exist 2019-04-09 10:39:51 -04:00