Permalink
Browse files

Escape spaces out of paths.

  • Loading branch information...
1 parent 94cd334 commit bad5e4ef414b2a4a931eedd2cf6b1a255e0e6a64 Carl Lerche committed Aug 20, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/support/path.rb
@@ -1,7 +1,7 @@
module Spec
module Path
def root
- @root ||= Pathname.new(File.expand_path("../../..", __FILE__))
+ @root ||= Pathname.new(File.expand_path("../../..", __FILE__).sub(/.*\s.*/m, '"\&"'))
end
def tmp(*path)
@@ -68,4 +68,4 @@ def bundler_path
extend self
end
-end
+end

0 comments on commit bad5e4e

Please sign in to comment.