From 7b46cc0962ca09970a2f79e499b33a591f8a5f79 Mon Sep 17 00:00:00 2001 From: Vikhyat Korrapati Date: Wed, 5 Feb 2014 08:03:05 +0530 Subject: [PATCH] Don't clear DiscoursePluginRegistry if LOAD_PLUGINS=true. --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e95bab803c4..7250a5078b6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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