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