Skip to content

Commit

Permalink
Fix so Rails.root works in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
krobertson committed Mar 10, 2011
1 parent b77f5c7 commit 60b8676
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
ROOT = File.join(File.dirname(__FILE__), '..')
RAILS_ROOT = ROOT

module Rails
def self.root
ROOT
end
end

$LOAD_PATH << File.join(ROOT, 'lib')
$LOAD_PATH << File.join(ROOT, 'lib', 'scribd_fu')

Expand Down

0 comments on commit 60b8676

Please sign in to comment.