spec/redis_mutex_spec.rb in redis-mutex-1.0.0 vs spec/redis_mutex_spec.rb in redis-mutex-1.1.0
- old
+ new
@@ -1,7 +1,11 @@
-require 'spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Redis::Mutex do
+ before do
+ Redis::Classy.flushdb
+ end
+
after do
Redis::Classy.flushdb
end
it "should set the value to the expiration" do