From 124a13825423af738369892293235fcfcb75597e Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Mon, 27 Dec 2010 18:57:21 +0100 Subject: [PATCH] Added failing test for GH-34 --- test/fake/file_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/fake/file_test.rb b/test/fake/file_test.rb index 77c4290..361f299 100644 --- a/test/fake/file_test.rb +++ b/test/fake/file_test.rb @@ -83,4 +83,14 @@ class FakeFileTest < Test::Unit::TestCase assert_equal "foo", clone.content assert_equal "bar", @file.content end + + def test_gh_34_doesnt_print_path_of_nonexisting_file + begin + FakeFS::File.new "/some/non/existing/file" + msg = nil + rescue Errno::ENOENT => e + msg = e.message + end + assert_match /^No such file or directory - No such file or directory - $/, msg + end end