Sha256: 5c01785cccb99737d5bd50fdd9ca1753394ae9bee3a51b359405b683fec146a6

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

require_relative 'test-util'

describe 'PioneObject' do
  it "should get UUID as string" do
    PioneObject.new.uuid.size.should == 36
  end

  it "should get same UUID from same object" do
    obj1 = PioneObject.new
    obj1.uuid.should == obj1.uuid
  end

  it "should get different uuids from different objects" do
    obj1 = PioneObject.new
    obj2 = PioneObject.new
    obj1.uuid.should == obj1.uuid
    obj1.uuid.should.not == obj2.uuid
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pione-0.2.2 test/spec_object.rb
pione-0.2.1 test/spec_object.rb
pione-0.2.0 test/spec_object.rb
pione-0.1.4 test/spec_object.rb
pione-0.1.3 test/spec_object.rb
pione-0.1.2 test/spec_object.rb
pione-0.1.1 test/spec_object.rb
pione-0.1.0 test/spec_object.rb