DEV: Properly flush DistributedMemoizer in spec.

- $redis.flushall may hide state leak from other tests.
This commit is contained in:
Guo Xiang Tan
2019-02-21 15:03:55 +08:00
parent 8745f78277
commit 72d14a11ab
2 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ describe StaticController do
before { FinalDestination.stubs(:lookup_ip).returns("1.2.3.4") }
after do
$redis.flushall
DistributedMemoizer.flush!
end
it 'returns the default favicon for a missing download' do