Sha256: 6131da75515bfbc8e226cd4895324a0d3e7e83d41a1b7f05183451da4277fca5

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

require 'helper'

describe Toy::Mongo do
  it "defaults key factory to object_id" do
    klass = Class.new do
      include Toy::Store
    end
    klass.key_factory.should be_instance_of(Toy::Identity::ObjectIdKeyFactory)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
toystore-mongo-0.7.0 spec/toy/mongo_spec.rb
toystore-mongo-0.6.0 spec/toy/mongo_spec.rb
toystore-mongo-0.5.0 spec/toy/mongo_spec.rb