mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
55af9f8a40
- attr_accessible not set for test user model, making Serializable tests inaccurate - Mongoid does not `include_root_in_json` by default, so enable this for consistency with AR tests - Mark tests pending for Mongoid < 2.1 that fail there due to known bugs - Add `:mongoid` key for i18n model labels - Remove outdated shim of `update_attribute` that caused mass assignment security to be applied (ugh, that took awhile to find)
14 lines
300 B
Ruby
14 lines
300 B
Ruby
require 'mongoid/version'
|
|
|
|
Mongoid.configure do |config|
|
|
config.master = Mongo::Connection.new('127.0.0.1', 27017).db("devise-test-suite")
|
|
config.use_utc = true
|
|
config.include_root_in_json = true
|
|
end
|
|
|
|
class ActiveSupport::TestCase
|
|
setup do
|
|
User.delete_all
|
|
Admin.delete_all
|
|
end
|
|
end
|