DEV: Load fabricators for plugins automatically. (#15106)

This commit is contained in:
Alan Guo Xiang Tan
2021-11-30 12:55:45 +08:00
committed by GitHub
parent af4b8d0e21
commit 0edacbd8f7

View File

@@ -84,6 +84,10 @@ if ENV['LOAD_PLUGINS'] == "1"
Dir[Rails.root.join("plugins/*/spec/plugin_helper.rb")].each do |f|
require f
end
Dir[Rails.root.join("plugins/*/spec/fabricators/**/*.rb")].each do |f|
require f
end
end
# let's not run seed_fu every test