Optimize execution duration for rspec specs

* Use in memory sqlite database for test environment
* Monkey patch BCrypt default cost factor
* Clean spec/spec_helper.rb
This commit is contained in:
Thibault Jouan
2011-08-31 10:53:49 +00:00
parent 47b4f7ac83
commit 7187266982
4 changed files with 17 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ development:
# Do not set this db to the same as development or production.
test: &test
adapter: sqlite3
database: db/test.sqlite3
database: ':memory:'
pool: 5
timeout: 5000
@@ -22,4 +22,4 @@ production:
timeout: 5000
cucumber:
<<: *test
<<: *test