Skip to content
Browse files

handle spaces in paths

  • Loading branch information...
1 parent 0db1543 commit 5d2551c0265b709bd13e7731e7f36cc5b8ecc57f @granth granth committed with Mar 17, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 Support/lib/spec/mate/runner.rb
View
4 Support/lib/spec/mate/runner.rb
@@ -2,8 +2,8 @@ module Spec
module Mate
class Runner
def run_files(stdout, options={})
- files = ENV['TM_SELECTED_FILES'].split(" ").map do |path|
- File.expand_path(path[1..-2])
+ files = ENV['TM_SELECTED_FILES'].scan(/'(.*?)'/).flatten.map do |path|
+ File.expand_path(path)
end
options.merge!({:files => files})
run(stdout, options)

0 comments on commit 5d2551c

Please sign in to comment.
Something went wrong with that request. Please try again.