Added failing test for GH-34

This commit is contained in:
Lars Gierth 2010-12-27 18:57:21 +01:00 committed by Scott Taylor
parent 66c27ff31b
commit 124a138254

View File

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