Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more tests #4970

Merged
merged 1 commit into from
Nov 13, 2018
Merged

Add more tests #4970

merged 1 commit into from
Nov 13, 2018

Commits on Nov 13, 2018

  1. Add more tests

    After merging #4261, I realized that we could add a couple more
    tests, to ensure the new behavior added to `#valid_password?` - which is
    that it should return `false` when the password is either `nil` or blank
    ('').
    I've also removed [this
    condition](https://github.com/plataformatec/devise/blob/master/lib/devise/models/database_authenticatable.rb#L68)
    because it's already present at `Devise::Encryptor` module in the
    `.compare`
    [method](https://github.com/plataformatec/devise/blob/master/lib/devise/encryptor.rb#L15).
    tegon committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    d470fc6 View commit details
    Browse the repository at this point in the history