diff --git a/lib/fakefs.rb b/lib/fakefs.rb index 0d85386..d1a05c1 100644 --- a/lib/fakefs.rb +++ b/lib/fakefs.rb @@ -126,6 +126,10 @@ module FakeFS !!FileSystem.find(path) end + def self.const_missing(name) + RealFile.const_get(name) + end + class << self alias_method :exists?, :exist? end