spec/mongomodel/document/persistence_spec.rb in mongomodel-0.1.6 vs spec/mongomodel/document/persistence_spec.rb in mongomodel-0.2.0

- old
+ new

@@ -181,18 +181,11 @@ User.delete('user-1') User.exists?('user-1').should be_false User.exists?('user-2').should be_true end - - it "should delete by conditions" do - User.delete(:age.gt => 15) - - User.exists?('user-2').should be_false - User.exists?('user-1').should be_true - end - + it "should delete by multiple ids in array" do User.delete(['user-1', 'user-2']) User.exists?('user-1').should be_false User.exists?('user-2').should be_false @@ -266,16 +259,9 @@ it "should destroy by id" do User.destroy('user-1') User.exists?('user-1').should be_false User.exists?('user-2').should be_true - end - - it "should destroy by conditions" do - User.destroy(:age.gt => 15) - - User.exists?('user-2').should be_false - User.exists?('user-1').should be_true end it "should destroy by multiple ids in array" do User.destroy(['user-1', 'user-2'])