Skip to content

Commit

Permalink
Fix for issue #150: we should not mock PATH_SEPARATOR, and use SEPARA…
Browse files Browse the repository at this point in the history
…TOR instead
  • Loading branch information
os97673 committed Sep 29, 2012
1 parent 38f8ba8 commit c6dcdce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/fakefs/file.rb
Expand Up @@ -2,8 +2,6 @@

module FakeFS
class File < StringIO
PATH_SEPARATOR = '/'

MODES = [
READ_ONLY = "r",
READ_WRITE = "r+",
Expand Down
2 changes: 1 addition & 1 deletion lib/fakefs/file_system.rb
Expand Up @@ -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)
Expand Down

0 comments on commit c6dcdce

Please sign in to comment.