mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 00:19:55 +08:00
DEV: Load fabricators for plugins automatically. (#15106)
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user