Don't clear DiscoursePluginRegistry if LOAD_PLUGINS=true.

This commit is contained in:
Vikhyat Korrapati 2014-02-05 08:03:05 +05:30
parent 759c18d9f5
commit 7b46cc0962

View file

@ -76,7 +76,7 @@ Spork.prefork do
end
config.before(:all) do
DiscoursePluginRegistry.clear
DiscoursePluginRegistry.clear if ENV['LOAD_PLUGINS'] != "true"
Discourse.current_user_provider = TestCurrentUserProvider
# a bit odd, but this setting is actually preloaded