mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 03:59:09 +08:00
We should clean up at the end of each test instead of at the start to ensure that there aren't any side effects. In this particular case, `SvgSprite.expire_cache` calls `DistributedCache#clear` but the cache is only cleared at the end of a transaction. If we clear the cache in a `before` hook, the cache isn't actually cleared until the existing transaction for the test has ended. |
||
|---|---|---|
| .. | ||
| svg_sprite_spec.rb | ||