simonc / memfs

MemFs provides a fake file system that can be used for tests. Strongly inspired by FakeFS.
MIT License
320 stars 27 forks source link

Reopening file does not reset position in file #22

Closed jimpo closed 7 years ago

jimpo commented 7 years ago
File.open('/tmp/blah', 'w') { |f| f.write('blah') }  # => 4
File.open('/tmp/blah', 'r') { |f| f.read }  # => "blah"
File.open('/tmp/blah', 'r') { |f| f.read }  # => ""
simonc commented 7 years ago

Closing this issue for it's been fixed in #23 ☺️