class ChefSpec::SoloRunner

def file_cache_path


you should cache the result to a variable inside you system.
**This method creates a new temporary directory on each call!** As such,

temporary directory is deleted when the system exits.
{Dir.mktmpdir}. The method adds a {Kernel.at_exit} handler to ensure the
The path to cache files on disk. This value is created using
def file_cache_path
  path = Dir.mktmpdir
  at_exit { FileUtils.rm_rf(path) }
  path
end