improve spec stability

This commit is contained in:
Sam 2018-05-25 15:16:40 +10:00
parent 69050f8a14
commit 9c91c2509e
1 changed files with 6 additions and 2 deletions

View File

@ -17,12 +17,16 @@ describe DistributedCache do
DistributedCache.new(name, manager: @manager)
end
let :cache_name do
SecureRandom.hex
end
let! :cache1 do
cache("test")
cache(cache_name)
end
let! :cache2 do
cache("test")
cache(cache_name)
end
it 'allows us to store Set' do