From c6c604a3caf5e5eb63c7db2634e30eaa0e8cae72 Mon Sep 17 00:00:00 2001 From: Tymon Tobolski Date: Mon, 20 Jul 2009 15:42:20 +0200 Subject: [PATCH] Implemented FileUtils#cd (chdir) --- lib/fakefs.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/fakefs.rb b/lib/fakefs.rb index 3e68f18..04f3d7d 100644 --- a/lib/fakefs.rb +++ b/lib/fakefs.rb @@ -107,6 +107,12 @@ module FakeFS end end end + + def cd(dir) + FileSystem.chdir(dir) + end + + alias :chdir :cd end class File