Fix randomly failing specs.

Fix randomly failing specs.

diff --git a/spec/jobs/about_stats_spec.rb b/spec/jobs/about_stats_spec.rb
index 312b345..2f761bf 100644
--- a/spec/jobs/about_stats_spec.rb
+++ b/spec/jobs/about_stats_spec.rb
@@ -5,8 +5,8 @@ describe Jobs::AboutStats do
     begin
       stats = About.fetch_stats.to_json
       cache_key = About.stats_cache_key
+      $redis.del(cache_key)
 
-      expect($redis.get(cache_key)).to eq(nil)
       expect(described_class.new.execute({})).to eq(stats)
       expect($redis.get(cache_key)).to eq(stats)
     ensure

GitHub sha: 685c2696

2 Likes