spec/toy/mongo_spec.rb in toystore-mongo-0.7.0 vs spec/toy/mongo_spec.rb in toystore-mongo-0.8.0
- old
+ new
@@ -1,10 +1,11 @@
require 'helper'
describe Toy::Mongo do
it "defaults key factory to object_id" do
klass = Class.new do
- include Toy::Store
+ include Toy::Mongo
end
+
klass.key_factory.should be_instance_of(Toy::Identity::ObjectIdKeyFactory)
end
end
\ No newline at end of file