Sha256: 8dd8ec41c9ecb684695be610f96b411cbd6fdba1a02075701a100f0ec1d912fc

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

require 'helper'

describe Toy::Mongo do
  it "defaults key factory to object_id" do
    klass = Class.new do
      include Toy::Mongo
    end

    klass.key_factory.should be_instance_of(Toy::Identity::ObjectIdKeyFactory)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
toystore-mongo-0.12.0 spec/toy/mongo_spec.rb
toystore-mongo-0.11.0 spec/toy/mongo_spec.rb
toystore-mongo-0.10.0 spec/toy/mongo_spec.rb
toystore-mongo-0.9.0 spec/toy/mongo_spec.rb
toystore-mongo-0.8.2 spec/toy/mongo_spec.rb
toystore-mongo-0.8.1 spec/toy/mongo_spec.rb
toystore-mongo-0.8.0 spec/toy/mongo_spec.rb