A platform for community discussion. Free, open, simple.
DEV: Load fabricators for plugins automatically. (#15106)
Alan Guo Xiang Tan0edacbd8f7f2
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rbindex 3c7b68d79e7..16fbbb1a379 100644--- a/spec/rails_helper.rb+++ b/spec/rails_helper.rb@@ -84,6 +84,10 @@ if ENV['LOAD_PLUGINS'] == "1"Dir[Rails.root.join("plugins/*/spec/plugin_helper.rb")].each do |f|require fend++ Dir[Rails.root.join("plugins/*/spec/fabricators/**/*.rb")].each do |f|+ require f+ endend# let's not run seed_fu every test