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…
Reference in New Issue