scube-server/spec/support/decrease_bcrypt_cost_factor.rb
Thibault Jouan 7187266982 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
2011-09-05 16:24:37 +00:00

9 lines
143 B
Ruby

module BCrypt
class Engine
[:DEFAULT_COST, :MIN_COST].each do |sym|
remove_const sym
const_set sym, 1
end
end
end