Skip to content

Commit

Permalink
DEV: ensures CustomEmoji cache is cleared after spec (#9361)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Apr 6, 2020
1 parent 028915e commit b248c55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/components/plugin/instance_spec.rb
Expand Up @@ -544,6 +544,10 @@ def register_locale(locale, opts)
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")

Expand Down

0 comments on commit b248c55

Please sign in to comment.