fix bust spec

This commit is contained in:
Sam 2014-04-02 16:22:12 +11:00
parent d2926424d6
commit eff20fdda7
1 changed files with 5 additions and 0 deletions

View File

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