From 4de717a976c85a22d7aac84ee6f596f68d5fa337 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Sun, 31 May 2009 22:41:11 -0700 Subject: [PATCH] Hum, how did that test pass last night? --- test/fakefs_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fakefs_test.rb b/test/fakefs_test.rb index 5c26b39..d0c7c47 100644 --- a/test/fakefs_test.rb +++ b/test/fakefs_test.rb @@ -290,8 +290,9 @@ class FakeFSTest < Test::Unit::TestCase def test_clone_clones_normal_files def here(fname); File.expand_path(File.dirname(__FILE__)+'/'+fname); end RealFile.open(here('foo'), 'w'){|f| f.write 'bar' } + assert !File.exists?(here('foo')) FileSystem.clone(here('foo')) - assert_equal 'bar', File.open('foo'){|f| f.read } + assert_equal 'bar', File.open(here('foo')){|f| f.read } ensure RealFile.unlink(here('foo')) if RealFile.exists?(here('foo')) end