memfs icon indicating copy to clipboard operation
memfs copied to clipboard

MemFs provides a fake file system that can be used for tests. Strongly inspired by FakeFS.

Results 14 memfs issues
Sort by recently updated
recently updated
newest added

Hi all, I am in the process of replacing mock-fs with mem-fs due to its lack of support for node 20.X. I am struggling to get mem-fs working in this...

The `tmpdir` library in the stdlib implements a single method called `mktmpdir`. I'd like to be able to use it for an eloop test that looks something like this: ```ruby...

Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. Commits 5476cda Bump up v13.1.0 1b6afad Merge pull request #521 from ruby/dependabot/github_actions/ruby/setup-ruby-1... 8b2a01c Bump ruby/setup-ruby from 1.156.0 to 1.157.0 1607fbf...

dependencies
ruby

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. Release notes Sourced from actions/checkout's releases. v4.0.0 What's Changed Update default runtime to node20 by @​takost in actions/checkout#1436 Support fetching without the --progress option...

dependencies
github_actions

The following code: ```ruby MemFs.activate { Tempfile.create } ``` produces the following error: ``` ruby/3.2.0/tempfile.rb:400:in `create': uninitialized constant MemFs::Dir::Tmpname (NameError) Dir::Tmpname.create(basename, tmpdir, **options) do |tmpname, n, opts| ^^^^^^^^^ ``` This...

I ran the specs on current master on a Windows 7 VM. Here was the result: ``` Failures: 1) MemFs::File::Stat#grpowned? when the effective user group does not own of the...

I've tried using `File.write` but it's not captured by your library. I'm not sure why because File normally inherits the method from `IO` and it looks like you've already catched...

`File#each` is supposed to accept a separator and/or a limit. For the moment it only handles the separator.

enhancement

Pathname is implemented in C and does not reflect MemFS filesystem.

enhancement

It would be great if I could map existing files into MemFs virtual file system for reading: ``` MemFs.map("my_file", "my_other_file") # Map file "my_file", "my_other_file" MemFs.map("my_files_directory") # Map directory "my_file_directory"...

enhancement