Files: 03c07302c3f65146490bf60e9a39bd16fe1dcf67 / spec / bcrypt / bcrypt_spec.rb
275 bytesRaw
1 | require File.join(File.dirname(__FILE__), "..", "spec_helper") |
2 | |
3 | context "BCrypt" do |
4 | specify "should calculate the optimal cost factor to fit in a specific time" do |
5 | first = BCrypt.calibrate(100) |
6 | second = BCrypt.calibrate(300) |
7 | second.should >(first + 1) |
8 | end |
9 | end |
Built with git-ssb-web