Skip to content

Instantly share code, notes, and snippets.

@dschneider
Created November 25, 2012 18:04
Show Gist options
  • Save dschneider/4144601 to your computer and use it in GitHub Desktop.
Save dschneider/4144601 to your computer and use it in GitHub Desktop.
BCrypt optimisation for use in testing.
require 'bcrypt'
silence_warnings do
BCrypt::Engine::DEFAULT_COST = BCrypt::Engine::MIN_COST
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment