lib/mongo-fixture.rb in mongo-fixture-0.0.2 vs lib/mongo-fixture.rb in mongo-fixture-0.0.3
- old
+ new
@@ -138,10 +138,10 @@
end
# Inserts the collection data into the database
def insert_data_for collection
@data[collection].each do |key, record|
- @connection[collection].insert record
+ @connection[collection].insert simplify record
end
@inserted << collection
end
# Empties the collections, only if they were empty to begin with