mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
21 lines
No EOL
459 B
Ruby
21 lines
No EOL
459 B
Ruby
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')
|
|
require 'test_help'
|
|
|
|
module MongoMapper::Document
|
|
# TODO This should not be required
|
|
def invalid?
|
|
!valid?
|
|
end
|
|
end
|
|
|
|
class ActiveSupport::TestCase
|
|
setup do
|
|
User.delete_all
|
|
Admin.delete_all
|
|
Account.delete_all
|
|
end
|
|
end |