mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 07:27:14 +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|
|
Dir[Rails.root.join("plugins/*/spec/plugin_helper.rb")].each do |f|
|
||||||
require f
|
require f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Dir[Rails.root.join("plugins/*/spec/fabricators/**/*.rb")].each do |f|
|
||||||
|
require f
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# let's not run seed_fu every test
|
# let's not run seed_fu every test
|
||||||
|
|
Loading…
Reference in New Issue
Block a user