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")