1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/test/orm/mongo_mapper.rb

21 lines
459 B
Ruby
Raw Normal View History

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)
require File.join(File.dirname(__FILE__), '..', 'rails_app', 'config', 'environment')
2009-12-21 09:29:58 -05:00
require 'test_help'
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