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