From 8c5e4c3d9345d0df3f41715611034e427cbe9417 Mon Sep 17 00:00:00 2001 From: Anthony Cook Date: Wed, 23 Feb 2022 10:45:30 -0800 Subject: [PATCH] Create placeholder spec for fixed access denied error --- spec/entry_spec.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/entry_spec.cr b/spec/entry_spec.cr index 71a1426..1fa103e 100644 --- a/spec/entry_spec.cr +++ b/spec/entry_spec.cr @@ -20,5 +20,15 @@ describe Lister::Entry do ensure system "rm #{nowhere}" end + + pending "doesn't raise an error when access is denied to a directory" do + # create a directory with permissions that will break this + no_access_dir = "lister_test.tmp" + system "mkdir #{no_access_dir}" + system "chmod -x #{no_access_dir}" + # attempt to traverse it + e = new_entry(no_access_dir) + e.type.should eq "asdkjgsdfkjgf" + end end end