devise
devise copied to clipboard
Set stretches to the minimum cost supported by the bcrypt algorithm in tests
During generating and setting encrypted_password by default BCrypt::Password.create is used. At the moment in the test environment the cost is set to 1. It is passed to BCrypt::Password.create and later set to 4 (BCrypt::Engine::MIN_COST) (1 -> 2). Observing encrypted_password being generated with the cost 4 while the cost 1 is specified via stretches may be confusing.
I rebased over the latest master to resolve minor merge conflicts.
@carlosantoniodasilva all checks have passed, no merge conflicts. Can you merge this?