1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/core/uuid_tests.rb

11 lines
265 B
Ruby
Raw Normal View History

Shindo.tests('Fog::UUID', 'core') do
tests('supported?').succeeds do
Fog::UUID.supported? == SecureRandom.respond_to?(:uuid)
end
tests('success').succeeds do
Fog::UUID.uuid =~ /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
end
end