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

@@ -0,0 +1,8 @@
module BCrypt
class Engine
[:DEFAULT_COST, :MIN_COST].each do |sym|
remove_const sym
const_set sym, 1
end
end
end