Skip to content

Commit 64530e4

Browse files
committed
symlink fails with a different error
1 parent aeead90 commit 64530e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/aikido/zen/sinks/file_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class LookLikeAttackTest < ActiveSupport::TestCase
182182

183183
test "File.symlink" do
184184
refute_attack do
185-
assert_raise Errno::EROFS do
185+
assert_raises(Errno::EROFS, Errno::EACCES) do
186186
File.symlink "some-fake-path", "/" + LOOKS_LIKE_AN_ATTACK_PATH
187187
end
188188
end

0 commit comments

Comments
 (0)