Skip to content

Instantly share code, notes, and snippets.

@ianterrell
Created January 21, 2011 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianterrell/789040 to your computer and use it in GitHub Desktop.
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.
# 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