test/functional/test_pagination.rb in mongo_mapper-0.5.7 vs test/functional/test_pagination.rb in mongo_mapper-0.5.8
- old
+ new
@@ -11,10 +11,10 @@
key :last_name, String
key :age, Integer
def self.per_page; 1 end
end
- @document.collection.clear
+ @document.collection.remove
@doc1 = @document.create({:first_name => 'John', :last_name => 'Nunemaker', :age => '27'})
@doc2 = @document.create({:first_name => 'Steve', :last_name => 'Smith', :age => '28'})
@doc3 = @document.create({:first_name => 'Steph', :last_name => 'Nunemaker', :age => '26'})
end
\ No newline at end of file