push
travis-ci
3 of 3 new or added lines in 1 file covered. (100.0%)
934 of 1528 relevant lines covered (61.13%)
5.7 hits per line
1 |
require 'spec_helper'
|
3 all except 1.9.3 and 2.0.0 ✔ |
2 |
|
|
3 |
describe Celluloid::UUID do |
3 all except 1.9.3 and 2.0.0 ✔ |
4 |
U = Celluloid::UUID |
3 all except 1.9.3 and 2.0.0 ✔ |
5 |
|
|
6 |
it "generates unique IDs across the BLOCK_SIZE boundary" do |
3 all except 1.9.3 and 2.0.0 ✔ |
7 |
upper_bound = U::BLOCK_SIZE * 2 + 10 |
× |
8 |
uuids = (1..upper_bound).map{ U.generate } |
× |
9 |
uuids.size.should == uuids.uniq.size |
× |
10 |
end
|
|
11 |
end
|