Permalink
Browse files

Use File::ALT_SEPARATOR if it is not nil (it is on nix systems).

  • Loading branch information...
1 parent d7c250a commit 1d49eb63c3612522ba4602e3640a7eb4c430f756 @justinko justinko committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/core/configuration.rb
@@ -806,7 +806,7 @@ def randomize?
def get_files_to_run(paths)
patterns = pattern.split(",")
paths.map do |path|
- path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
+ path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
File.directory?(path) ? gather_directories(path, patterns) : extract_location(path)
end.flatten
end

0 comments on commit 1d49eb6

Please sign in to comment.