Permalink
Browse files

Fix for issue #150: we should not mock PATH_SEPARATOR, and use SEPARA…

…TOR instead
  • Loading branch information...
1 parent 38f8ba8 commit c6dcdcee213d87643165b05252a3b703158c5940 @os97673 os97673 committed Sep 29, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 lib/fakefs/file.rb
  2. +1 −1 lib/fakefs/file_system.rb
View
@@ -2,8 +2,6 @@
module FakeFS
class File < StringIO
- PATH_SEPARATOR = '/'
-
MODES = [
READ_ONLY = "r",
READ_WRITE = "r+",
@@ -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)

0 comments on commit c6dcdce

Please sign in to comment.