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:
parent
11a77055f1
commit
c4d5a3fdaa
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue