correct broken spec

This commit is contained in:
Sam
2014-11-12 10:27:34 +11:00
parent ec496a71b1
commit 5fd0841563
3 changed files with 20 additions and 14 deletions

View File

@ -3,18 +3,6 @@ require 'distributed_cache'
describe DistributedCache do
def wait_for(&blk)
i = 0
result = false
while !result && i < 300
result = blk.call
i += 1
sleep 0.001
end
result.should == true
end
let! :cache1 do
DistributedCache.new("test")
end