Registry / testing / fakefs

fakefs

JSON →
library3.2.1rbrubygemsunverified

FakeFS provides a fake filesystem for use in tests, allowing file operations without touching the real disk.

gem install fakefs
INSTALL
IMPORT
SIG · FAKEFS
F
fakefs
testingrubyv3.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FakeFS
require 'fakefs'

Use FakeFS to simulate file operations in a test

require 'fakefs' FakeFS do File.write('test.txt', 'hello') puts File.read('test.txt') end
Debug
Known issues
gotchaFakeFS does not support all File methods (e.g., File.chmod, File.lchmod) and may behave differently with symlinks.
fix
Check the FakeFS documentation for unsupported methods and use real filesystem if needed.
affects: >= 0.0.0
Upgrade
Version history
3.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fakefs — gem install fakefs · libregistry