mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 16:05:44 +08:00
FIX: Cleanup DiscoursePluginRegistry state after tests that use it
This was causing some heisentests
This commit is contained in:
@ -40,6 +40,7 @@ describe Stylesheet::Compiler do
|
||||
after do
|
||||
Discourse.plugins.pop
|
||||
Stylesheet::Importer.register_imports!
|
||||
DiscoursePluginRegistry.reset!
|
||||
end
|
||||
|
||||
it "does not include theme variables in plugins" do
|
||||
|
@ -68,7 +68,7 @@ describe Stylesheet::Manager do
|
||||
|
||||
describe 'digest' do
|
||||
after do
|
||||
DiscoursePluginRegistry.stylesheets.delete "fake_file"
|
||||
DiscoursePluginRegistry.reset!
|
||||
end
|
||||
|
||||
it 'can correctly account for plugins in digest' do
|
||||
|
Reference in New Issue
Block a user