Registry / testing / given-filesystem

given-filesystem

JSON →
library0.2.0rbrubygemsunverified

A set of helpers for testing code which operates on file systems.

gem install given_filesystem
INSTALL
IMPORT
SIG · GIVEN-FILESYSTEM
G
given-filesystem
testingrubyv0.2.0
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.

GivenFilesystem
require 'given_filesystem'

Create a temporary directory and write/read a file.

require 'given_filesystem' include GivenFilesystem with_tmpdir do |dir| File.write(File.join(dir, 'test.txt'), 'hello') puts File.read(File.join(dir, 'test.txt')) end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
given-filesystem — gem install given-filesystem · libregistry