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

No need to assert for a message we won't receive

This commit is contained in:
José Valim 2013-07-26 10:00:09 +02:00
parent 11a77055f1
commit c4d5a3fdaa

View file

@ -46,11 +46,6 @@ class TimeoutableTest < ActiveSupport::TestCase
test 'should not raise error if remember_created_at is not empty and rememberable is disabled' do
user = create_admin(remember_created_at: Time.current)
begin
assert user.timedout?(31.minutes.ago)
rescue NoMethodError => e
refute_includes e.message, "undefined method `remember_expired?' for #<Admin:"
end
assert user.timedout?(31.minutes.ago)
end
end