From 1226acc4b3c4a0c1ff306cdd904cddd8bbedaf8b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 21 Jul 2009 22:31:36 -0700 Subject: [PATCH] File.exist? should return a real boolean (nicer debugging) --- lib/fakefs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fakefs.rb b/lib/fakefs.rb index 7529583..3e68f18 100644 --- a/lib/fakefs.rb +++ b/lib/fakefs.rb @@ -117,7 +117,7 @@ module FakeFS end def self.exist?(path) - FileSystem.find(path) || false + !!FileSystem.find(path) end class << self