Permalink
Browse files

Flush redis db between tests.

  • Loading branch information...
alanpeabody committed May 5, 2012
1 parent 0da17ea commit cd37c761f9e937481c4df68e443506d67463cbc1
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/test_job_stats.rb
View
@@ -31,6 +31,8 @@ class CustomDurJob < BaseJob
class TestResqueJobStats < MiniTest::Unit::TestCase
def setup
+ # Ensure empty redis for each test
+ Resque.redis.flushdb
@worker = Resque::Worker.new(:test)
end

0 comments on commit cd37c76

Please sign in to comment.