mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
330a351ade
Done with `rubocop --auto-correct --only TrailingBlankLines`
10 lines
265 B
Ruby
10 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
|