mirror of
https://github.com/vidarh/ruby-x11
synced 2024-12-27 09:59:21 +01:00
16 lines
352 B
Ruby
16 lines
352 B
Ruby
|
require File.expand_path('../helper', __FILE__)
|
||
|
|
||
|
describe X11 do
|
||
|
describe X11::Display do
|
||
|
before(:each) do
|
||
|
@display = X11::Display.new
|
||
|
end
|
||
|
|
||
|
it "should generate a unique id" do
|
||
|
collection = 1000.times.collect { @display.new_id }
|
||
|
expected = collection.size
|
||
|
collection.uniq.size.must_equal expected
|
||
|
end
|
||
|
end
|
||
|
end
|