correct broken spec
This commit is contained in:
parent
ec496a71b1
commit
5fd0841563
3 changed files with 20 additions and 14 deletions
|
@ -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
|
||||
|
|
Reference in a new issue