DEV: ensures CustomEmoji cache is cleared after spec (#9361)

DEV: ensures CustomEmoji cache is cleared after spec (#9361)

diff --git a/spec/components/plugin/instance_spec.rb b/spec/components/plugin/instance_spec.rb
index 6453339..26dd0d3 100644
--- a/spec/components/plugin/instance_spec.rb
+++ b/spec/components/plugin/instance_spec.rb
@@ -544,6 +544,10 @@ describe Plugin::Instance do
       Plugin::CustomEmoji.clear_cache
     end
 
+    after do
+      Plugin::CustomEmoji.clear_cache
+    end
+
     it 'allows to register an emoji' do
       Plugin::Instance.new.register_emoji("foo", "/foo/bar.png")
 

GitHub sha: b248c553

This commit appears in #9361 which was merged by jjaffeux.