heartcombo--devise/test/orm/mongo_mapper.rb

20 lines
436 B
Ruby
Raw Normal View History

2009-12-21 14:29:58 +00:00
require 'mongo_mapper'
MongoMapper.database = "devise-test-suite"
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017)
require File.join(File.dirname(__FILE__), '..', 'rails_app', 'config', 'environment')
2009-12-21 14:29:58 +00:00
require 'test_help'
module MongoMapper::Document
# TODO This should not be required
def invalid?
!valid?
end
end
2009-12-21 14:29:58 +00:00
class ActiveSupport::TestCase
setup do
User.delete_all
Admin.delete_all
end
end