Implemented FileUtils#rm_r
This commit is contained in:
parent
d975149d6f
commit
29dd607869
@ -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
|
test-time dependency: your actual library does not need to use or know about
|
||||||
FakeFS.
|
FakeFS.
|
||||||
|
|
||||||
|
|
||||||
|
Speed?
|
||||||
|
------
|
||||||
|
http://gist.github.com/150348
|
||||||
|
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ module FakeFS
|
|||||||
FileSystem.delete(path)
|
FileSystem.delete(path)
|
||||||
end
|
end
|
||||||
alias_method :rm_rf, :rm
|
alias_method :rm_rf, :rm
|
||||||
|
alias_method :rm_r, :rm
|
||||||
|
|
||||||
def ln_s(target, path)
|
def ln_s(target, path)
|
||||||
raise Errno::EEXIST, path if FileSystem.find(path)
|
raise Errno::EEXIST, path if FileSystem.find(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user