test/test_password_expirable.rb in devise-security-0.17.0 vs test/test_password_expirable.rb in devise-security-0.18.0
- old
+ new
@@ -45,10 +45,10 @@
assert_not user.password_change_requested?
end
test 'saving a record records the time the password was changed' do
user = User.new email: 'bob@microsoft.com', password: 'Password1', password_confirmation: 'Password1'
- assert user.password_changed_at.nil?
+ assert_nil user.password_changed_at
assert_not user.password_change_requested?
assert_not user.password_expired?
user.save
assert user.password_changed_at.present?
assert_not user.password_change_requested?