Warn about an incompatibility between Devise and Mongoid

This commit is contained in:
Vinicius Baggio
2011-02-25 18:17:14 -03:00
parent 0cc900e7cf
commit aa81df261c

View File

@@ -27,7 +27,12 @@ class TokenAuthenticatableTest < ActiveSupport::TestCase
end
test 'should return nil when authenticating an invalid user by authentication token' do
skip 'Currently raises an exception with Mongoid.' if DEVISE_ORM == :mongoid
if DEVISE_ORM == :mongoid
raise 'There is an incompatibility between Devise and Mongoid' <<
' that makes this test break. For more information, check' <<
' this issue: https://github.com/mongoid/mongoid/issues/725'
end
user = create_user
user.ensure_authentication_token!
user.confirm!
@@ -35,4 +40,4 @@ class TokenAuthenticatableTest < ActiveSupport::TestCase
assert_nil authenticated_user
end
end
end