mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Load fabricators for plugins automatically. (#15106)
This commit is contained in:
committed by
GitHub
parent
af4b8d0e21
commit
0edacbd8f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user