spec/spec_helper.rb in machinist_mongomapper-0.9.6 vs spec/spec_helper.rb in machinist_mongomapper-0.9.7

- old
+ new

@@ -4,16 +4,16 @@ require "sham" begin $LOAD_PATH.unshift File.dirname(__FILE__) + "/../../mongomapper/lib" rescue - gem "mongomapper" + gem "mongo_mapper" end -require "mongomapper" +require "mongo_mapper" MongoMapper.database = "machinist_mongomapper" Spec::Runner.configure do |config| config.before(:each) { Sham.reset } - config.after(:all) { MongoMapper.database.collections.each { |c| c.clear } } -end \ No newline at end of file + config.after(:all) { MongoMapper.database.collections.each { |c| c.remove } } +end