Sha256: f70dc5ca092741d8f44807998ec73597f191eaede3279bcd08a8be6761f00e5d

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

require 'helper'

describe "SimpleUUID::UUID.to_store" do
  it "should convert value to uuid" do
    uuid = SimpleUUID::UUID.new
    [uuid, uuid.to_guid, uuid.to_s, uuid.to_i].each do |value|
      SimpleUUID::UUID.from_store(value).should eq(uuid)
    end
  end
end

describe "SimpleUUID::UUID.from_store" do
  it "should convert value to uuid" do
    uuid = SimpleUUID::UUID.new
    [uuid, uuid.to_guid, uuid.to_s, uuid.to_i].each do |value|
      SimpleUUID::UUID.from_store(value).should eq(uuid)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
toystore-0.13.0 spec/toy/extensions/uuid_spec.rb
toystore-0.12.0 spec/toy/extensions/uuid_spec.rb