Sha256: a08cfb5ffda46172facc550b0bbe0e16a35cb9959c68d6fe1f7da45e003423df
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
require 'helper' describe Toy::Identity::UUIDKeyFactory do uses_constants('User') it "should use String as store_type" do Toy::Identity::UUIDKeyFactory.new.key_type.should be(String) end it "should use uuid for next key" do Toy::Identity::UUIDKeyFactory.new.next_key(nil).length.should == 36 end describe "Declaring key to be object_id" do before(:each) do User.key(:uuid) end it "sets id attribute to String type" do User.attributes['id'].type.should be(String) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.6.3 | spec/toy/identity/uuid_key_factory_spec.rb |
toystore-0.6.2 | spec/toy/identity/uuid_key_factory_spec.rb |