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

This commit is contained in:
Joffrey JAFFEUX
2020-04-06 19:41:59 +02:00
committed by GitHub
parent 028915e4b9
commit b248c553c2

View File

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