Sha256: f281886e189190d19f37c4ec0dd837e4d88f702e6e655ed2792c5023d374418f
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
= sandbox Sandbox is a very small library that creates a folder in tmp for you to be able to perform tests. Your temporary path will be available while the play block is executing. When you're done, it will clean it up for you. Sandbox.play do |path| FileUtils.touch(File.join(path, 'foo')) end # path has been deleted It will clean up even if you have an exception: Sandbox.play do |path| # do stuff in path raise "boom" end # path has been deleted = Copyright Copyright (c) 2008 Brandon Dimcheff. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bdimcheff-sandbox-0.0.1 | README.rdoc |