test/test_helper.rb in mongo_mapper-0.5.8 vs test/test_helper.rb in mongo_mapper-0.6.0

- old
+ new

@@ -1,11 +1,11 @@ require File.expand_path(File.dirname(__FILE__) + '/../lib/mongo_mapper') gem 'jnunemaker-matchy', '0.4.0' gem 'shoulda', '2.10.2' gem 'timecop', '0.3.1' -gem 'mocha', '0.9.4' +gem 'mocha', '0.9.8' require 'matchy' require 'shoulda' require 'timecop' require 'mocha' @@ -16,15 +16,12 @@ class Test::Unit::TestCase include CustomMatchers end -DefaultDatabase = 'test' unless defined?(DefaultDatabase) -AlternateDatabase = 'test2' unless defined?(AlternateDatabase) - test_dir = File.expand_path(File.dirname(__FILE__) + '/../tmp') FileUtils.mkdir_p(test_dir) unless File.exist?(test_dir) MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, { :logger => Logger.new(test_dir + '/test.log') }) -MongoMapper.database = DefaultDatabase +MongoMapper.database = 'test' \ No newline at end of file