Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
handle spaces in paths
Browse files Browse the repository at this point in the history
  • Loading branch information
granth authored and dchelimsky committed Apr 1, 2009
1 parent 0db1543 commit 5d2551c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Support/lib/spec/mate/runner.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 5d2551c

Please sign in to comment.