Sha256: 2d5c562177b0c9547d19cc4f266d3511c868ef580a82f95f9b034b61984fd03e

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

RSpec.describe Celluloid::Internals::UUID do
  U = Celluloid::Internals::UUID

  it "generates unique IDs across the BLOCK_SIZE boundary" do
    upper_bound = U::BLOCK_SIZE * 2 + 10
    uuids = (1..upper_bound).map { U.generate }
    expect(uuids.size).to eq(uuids.uniq.size)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
celluloid-0.18.0 spec/celluloid/internals/uuid_spec.rb
celluloid-0.18.0.pre2 spec/celluloid/internals/uuid_spec.rb