Skip to content

Commit 37183fe

Browse files
authored
Fix definition_file_paths comment (#1737)
The comment for definition_file_paths is incorrect; all matching factory paths will be loaded. This is also documented correctly at https://thoughtbot.github.io/factory_bot/ref/find_definitions.html
1 parent cc98380 commit 37183fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/factory_bot/find_definitions.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ module FactoryBot
22
class << self
33
# An Array of strings specifying locations that should be searched for
44
# factory definitions. By default, factory_bot will attempt to require
5-
# "factories", "test/factories" and "spec/factories". Only the first
6-
# existing file will be loaded.
5+
# "factories.rb", "factories/**/*.rb",
6+
# "test/factories.rb", "test/factories/**.rb",
7+
# "spec/factories.rb", and "spec/factories/**.rb".
78
attr_accessor :definition_file_paths
89
end
910

0 commit comments

Comments
 (0)