slight speed improvement by tweaking devise in the test env

This commit is contained in:
Jonne Hass 2011-12-11 13:12:40 +01:00
parent dbdee43cc6
commit 94aaa46a12

View file

@ -54,7 +54,7 @@ Devise.setup do |config|
# ==> Configuration for :database_authenticatable # ==> Configuration for :database_authenticatable
# For bcrypt, this is the cost for hashing the password and defaults to 10. If # 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. # using other encryptors, it sets how many times you want the password re-encrypted.
config.stretches = 10 config.stretches = Rails.env.test? ? 1 : 10
# Define which will be the encryption algorithm. Devise also supports encryptors # Define which will be the encryption algorithm. Devise also supports encryptors
# from others authentication tools as :clearance_sha1, :authlogic_sha512 (then # from others authentication tools as :clearance_sha1, :authlogic_sha512 (then