fog--fog/tests/core/uuid_tests.rb

11 lines
265 B
Ruby

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