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

Merge pull request #1241 from dbloete/patch-1

Speed up tests by defaulting to 1 stretch in test env
This commit is contained in:
José Valim 2011-08-05 10:43:54 -07:00
commit 98651dae9d

View file

@ -61,7 +61,9 @@ Devise.setup do |config|
# ==> Configuration for :database_authenticatable
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
# using other encryptors, it sets how many times you want the password re-encrypted.
config.stretches = 10
# Limiting the stretches to just one in test env will increase the performance of
# your tests dramatically if you create a lot of users.
config.stretches = Rails.env.test? ? 1 : 10
# Setup a pepper to generate the encrypted password.
# config.pepper = <%= SecureRandom.hex(64).inspect %>