Skip to content

Commit

Permalink
Merge 2732cd5 into fe6a315
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 13, 2021
2 parents fe6a315 + 2732cd5 commit 540c737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/memfs/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class File < IO
include Enumerable
include FilesystemAccess

PATH_SEPARATOR = '/'
ALT_SEPARATOR = nil

MODE_MAP = {
Expand Down
4 changes: 4 additions & 0 deletions spec/memfs/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module MemFs
expect(MemFs::File::SEPARATOR).to eq '/'
end

it 'expose PATH_SEPARATOR' do
expect(MemFs::File::PATH_SEPARATOR).to eq '/'
end

it 'expose ALT_SEPARATOR' do
expect(MemFs::File::ALT_SEPARATOR).to be_nil
end
Expand Down

0 comments on commit 540c737

Please sign in to comment.