Added const_missing (autospec again)

This commit is contained in:
Tymon Tobolski 2009-07-20 14:59:51 +02:00 committed by Chris Wanstrath
parent 29dd607869
commit 99880eae06

View File

@ -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