Created
January 21, 2011 00:46
-
-
Save ianterrell/789040 to your computer and use it in GitHub Desktop.
Generating users dynamically in your test suite? Speed it up with a simple tweak.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In your devise.rb configuration file, set the bcrypt stretches to 1 in your test environment: | |
config.stretches = Rails.env.test? ? 1 : 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment