Skip to content

Commit e4daef7

Browse files
committed
CI pipeline throws a different exception
1 parent 26d2b41 commit e4daef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/aikido/zen/sinks/file_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ class LookLikeAttackTest < ActiveSupport::TestCase
242242

243243
test "File.realpath" do
244244
refute_attack do
245-
assert_raise Errno::ENOTDIR do
245+
assert_raise(Errno::ENOTDIR, Errno::ENOENT) do
246246
File.realpath(LOOKS_LIKE_AN_ATTACK_PATH, __FILE__)
247247
end
248248
end
249249
end
250250

251251
test "File.realdirpath" do
252252
refute_attack do
253-
assert_raise Errno::ENOENT do
253+
assert_raise(Errno::ENOTDIR, Errno::ENOENT) do
254254
File.realdirpath(LOOKS_LIKE_AN_ATTACK_PATH + "/no-matters", __FILE__)
255255
end
256256
end

0 commit comments

Comments
 (0)