mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 19:43:44 +08:00
Merge pull request #4877 from rimian/plugin_helper
FEATURE: Require spec helpers for plugins
This commit is contained in:
commit
6231318462
|
@ -29,6 +29,13 @@ Spork.prefork do
|
|||
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||
Dir[Rails.root.join("spec/fabricators/*.rb")].each {|f| require f}
|
||||
|
||||
# Require plugin helpers at plugin/[plugin]/spec/plugin_helper.rb (includes symlinked plugins).
|
||||
if ENV['LOAD_PLUGINS'] == "1"
|
||||
Dir[Rails.root.join("plugins/*/spec/plugin_helper.rb")].each do |f|
|
||||
require f
|
||||
end
|
||||
end
|
||||
|
||||
# let's not run seed_fu every test
|
||||
SeedFu.quiet = true if SeedFu.respond_to? :quiet
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user