Sha256: f32afe2cf26d8765b2521aac076e91cd912b758cdc904f41dd1141927c03ee44
Contents?: true
Size: 347 Bytes
Versions: 17
Compression:
Stored size: 347 Bytes
Contents
RSpec.describe WorkerKiller do let(:logger){ Logger.new(nil) } describe '#randomize' do [1, 5, 25, 125, 5000, 10_000].each do |max| it "randomize(#{max})" do 1000.times do rnd = WorkerKiller.randomize(max) expect(rnd).to be >= 0 expect(rnd).to be < max end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems