Skip to content

Commit 02838d0

Browse files
authored
Merge pull request #207 from forkata/add-support-for-namespaced-extensions
Allow loading of factories from namespaced extensions
2 parents 46e340a + 3e6b7ca commit 02838d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/solidus_dev_support/testing_support/factories.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module TestingSupport
88
module Factories
99
def self.load_for(*engines)
1010
paths = engines.flat_map do |engine|
11-
engine.root.glob('lib/*/testing_support/factories{,.rb}')
11+
engine.root.glob('lib/**/testing_support/factories{,.rb}')
1212
end.map { |path| path.sub(/.rb\z/, '').to_s }
1313

1414
FactoryBot.definition_file_paths = [

0 commit comments

Comments
 (0)