Permalink
Browse files

Added conditional to reduce test cost.

  • Loading branch information...
1 parent e7154b3 commit 4461743ae39a8542b6c2f38e89986f777b3b2336 @gavingmiller gavingmiller committed Apr 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/templates/devise.rb
@@ -51,7 +51,7 @@
# ==> 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
+ config.stretches = (Rails.env == "test") ? 1 : 10
# Setup a pepper to generate the encrypted password.
# config.pepper = <%= ActiveSupport::SecureRandom.hex(64).inspect %>

0 comments on commit 4461743

Please sign in to comment.