Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #151 from os97673/issue-150-path-separator

Use File::SEPARATOR instead of mocking PATH_SEPARATOR. Fixes #150.
  • Loading branch information...
commit 426d9a90d5aee972dd0676dbc49b37060712eb60 2 parents 38f8ba8 + c6dcdce
@rue rue authored
Showing with 1 addition and 3 deletions.
  1. +0 −2  lib/fakefs/file.rb
  2. +1 −1  lib/fakefs/file_system.rb
View
2  lib/fakefs/file.rb
@@ -2,8 +2,6 @@
module FakeFS
class File < StringIO
- PATH_SEPARATOR = '/'
-
MODES = [
READ_ONLY = "r",
READ_WRITE = "r+",
View
2  lib/fakefs/file_system.rb
@@ -86,7 +86,7 @@ def chdir(dir, &blk)
end
def path_parts(path)
- path.split(File::PATH_SEPARATOR).reject { |part| part.empty? }
+ path.split(File::SEPARATOR).reject { |part| part.empty? }
end
def normalize_path(path)
Please sign in to comment.
Something went wrong with that request. Please try again.