D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
celluloid-0.15.2
/
spec
/
celluloid
/
Filename :
uuid_spec.rb
back
Copy
require 'spec_helper' describe Celluloid::UUID do U = Celluloid::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 } uuids.size.should == uuids.uniq.size end end