File: uuid_spec.rb

package info (click to toggle)
ruby-fog-core 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 676 kB
  • sloc: ruby: 4,719; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
require "spec_helper"

describe "Fog::UUID" do
  it "#supported?" do
    Fog::UUID.supported? == SecureRandom.respond_to?(:uuid)
  end

  it "generates a valid UUID" 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