Skip to content

Commit

Permalink
Use File::ALT_SEPARATOR if it is not nil (it is on nix systems).
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed May 20, 2012
1 parent d7c250a commit 1d49eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/configuration.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1d49eb6

Please sign in to comment.