Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
handle nil in File.join
Browse files Browse the repository at this point in the history
Honestly I don't know much about Fabricator, but when running pickle rspec, prefix is nil and makes it crash
this fixes it... thanks
  • Loading branch information
mathieujobin committed Aug 19, 2017
1 parent 2c38590 commit 923cf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fabrication/schematic/manager.rb
Expand Up @@ -45,7 +45,7 @@ def load_definitions
preinitialize
Fabrication::Config.path_prefixes.each do |prefix|
Fabrication::Config.fabricator_paths.each do |folder|
Dir.glob(File.join(prefix, folder, '**', '*.rb')).sort.each do |file|
Dir.glob(File.join(prefix.to_s, folder, '**', '*.rb')).sort.each do |file|
load file
end
end
Expand Down

0 comments on commit 923cf6f

Please sign in to comment.