Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 1d49eb63c3612522ba4602e3640a7eb4c430f756 1 parent d7c250a
@justinko justinko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rspec/core/configuration.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.