Use assert_nil to prevent minitest warnings

This commit is contained in:
Carlos Antonio da Silva 2017-03-02 08:12:46 -03:00
parent fa2d333bde
commit c76f0e59b7
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ class RecoverableTest < ActiveSupport::TestCase
end
test 'should return nil if a user based on the raw token is not found' do
assert_equal User.with_reset_password_token('random-token'), nil
assert_nil User.with_reset_password_token('random-token')
end
end