Permalink
Browse files

Speed up the test by decreasing BCrypt cost factor

  • Loading branch information...
1 parent fce9e27 commit 86ecb5165ee8c36957bea90d5d943b1133edb776 Olivier Schneider committed Feb 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/environments/test.rb
@@ -34,4 +34,10 @@
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
+
+ # Speed up test by lowering BCrypt's cost function.
+ require 'bcrypt'
+ silence_warnings do
+ BCrypt::Engine::DEFAULT_COST = BCrypt::Engine::MIN_COST
+ end
end

0 comments on commit 86ecb51

Please sign in to comment.