From 99880eae06880ca5b9b34b7541405aa0db35701f Mon Sep 17 00:00:00 2001 From: Tymon Tobolski Date: Mon, 20 Jul 2009 14:59:51 +0200 Subject: [PATCH] Added const_missing (autospec again) --- lib/fakefs.rb | 4 ++++ 1 file changed, 4 insertions(+) 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