git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 812e12f884941325badb2553b22b5914d4b4bc91

Fix Ruby 1.9 compatibility.

'.' is no longer in the default $LOAD_PATH, so we need to expand
file paths when requiring local source files.

Signed-off-by: Coda Hale <coda.hale@gmail.com>
Hongli Lai (Phusion) authored on 8/5/2009, 6:22:18 AM
Coda Hale committed on 8/12/2009, 9:52:21 PM
Parent: 79bcfaef644ee9b21cab3e12e32312f427861a90

Files changed

spec/bcrypt/engine_spec.rbchanged
spec/bcrypt/password_spec.rbchanged
spec/spec_helper.rbchanged
spec/bcrypt/engine_spec.rbView
@@ -1,5 +1,5 @@
1-require File.join(File.dirname(__FILE__), "..", "spec_helper")
1+require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
22
33 context "The BCrypt engine" do
44 specify "should calculate the optimal cost factor to fit in a specific time" do
55 first = BCrypt::Engine.calibrate(100)
spec/bcrypt/password_spec.rbView
@@ -1,5 +1,5 @@
1-require File.join(File.dirname(__FILE__), "..", "spec_helper")
1+require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
22
33 context "Creating a hashed password" do
44
55 before :each do
spec/spec_helper.rbView
@@ -1,4 +1,4 @@
1-$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
1+$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
22 require "rubygems"
33 require "spec"
44 require "bcrypt"

Built with git-ssb-web