rails/rails — pull request #8216 by trevorturk (2012-11-14 04:39:45+00:00)
Title: Use BCrypt's MIN_COST in the test environment for speedier tests

I came across this blog post:

http://collectiveidea.com/blog/archives/2012/11/12/tests-oddly-slow-might-be-bcrypt/

...which suggests putting the following into a your `test_helper`:

`BCrypt::Engine::DEFAULT_COST = 1`

...for a speedier test suite.

I tested this out on a few apps, found a noticeable speedup, and worked with @jeremy on this pull request after reviewing the feedback on this existing pull request: https://github.com/rails/rails/pull/285