spec/flipper/adapters/mongo/document_spec.rb in flipper-mongo-0.2.0 vs spec/flipper/adapters/mongo/document_spec.rb in flipper-mongo-0.2.1

- old
+ new

@@ -19,9 +19,13 @@ it "defaults id to flipper" do described_class.new(collection).instance_variable_get("@id").should eq('flipper') end + it "defaults id to flipper even if nil passed in for id" do + described_class.new(collection, :id => nil).instance_variable_get("@id").should eq('flipper') + end + describe "loading document" do before do collection.update(criteria, {'$set' => {'foo' => 'bar', 'people' => [1, 2, 3]}}, options) end