Skip to content

Commit

Permalink
Create placeholder spec for fixed access denied error
Browse files Browse the repository at this point in the history
  • Loading branch information
acook committed Feb 23, 2022
1 parent db57525 commit 8c5e4c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/entry_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c5e4c3

Please sign in to comment.