From eff20fdda714aba2b3ba81a0be4a1e34c7b8cd4f Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 Apr 2014 16:22:12 +1100 Subject: [PATCH] fix bust spec --- spec/components/plugin/instance_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/components/plugin/instance_spec.rb b/spec/components/plugin/instance_spec.rb index 5f2a11cc38e..89833c4174a 100644 --- a/spec/components/plugin/instance_spec.rb +++ b/spec/components/plugin/instance_spec.rb @@ -3,6 +3,11 @@ require_dependency 'plugin/instance' describe Plugin::Instance do + after do + DiscoursePluginRegistry.javascripts.clear + DiscoursePluginRegistry.stylesheets.clear + end + context "find_all" do it "can find plugins correctly" do plugins = Plugin::Instance.find_all("#{Rails.root}/spec/fixtures/plugins")