Sha256: 2079c093a527d61c39564b154438533bb6f05d04696fbcab5ef418223abcab16
Contents?: true
Size: 406 Bytes
Versions: 55
Compression:
Stored size: 406 Bytes
Contents
require 'test_helper' require 'tins' module Tins class LimitedTest < Test::Unit::TestCase def test_limited count = {} limited = Tins::Limited.new(5) 5.times do limited.execute do count[Thread.current] = true sleep end end until count.size >= 5 sleep 0.1 end assert_equal 5, count.keys.uniq.size end end end
Version data entries
55 entries across 52 versions & 4 rubygems