Skip to content

A platform for community discussion. Free, open, simple.

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

Joffrey JAFFEUXb248c553c26a
diff --git a/spec/components/plugin/instance_spec.rb b/spec/components/plugin/instance_spec.rb
index 6453339706c..26dd0d39c7f 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")