From 29dd6078699085c9a5fc97cc2ea43b8c904eed31 Mon Sep 17 00:00:00 2001 From: Tymon Tobolski Date: Mon, 20 Jul 2009 16:01:48 +0200 Subject: [PATCH] Implemented FileUtils#rm_r --- README.markdown | 6 ++++++ lib/fakefs.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/README.markdown b/README.markdown index c4dbf91..52acf1a 100644 --- a/README.markdown +++ b/README.markdown @@ -31,6 +31,12 @@ FakeFS provides a test suite and works with symlinks. It's also strictly a test-time dependency: your actual library does not need to use or know about FakeFS. + +Speed? +------ +http://gist.github.com/150348 + + Authors ------- diff --git a/lib/fakefs.rb b/lib/fakefs.rb index 50b9dea..0d85386 100644 --- a/lib/fakefs.rb +++ b/lib/fakefs.rb @@ -19,6 +19,7 @@ module FakeFS FileSystem.delete(path) end alias_method :rm_rf, :rm + alias_method :rm_r, :rm def ln_s(target, path) raise Errno::EEXIST, path if FileSystem.find(path)