Skip to content

Commit c8417db

Browse files
committed
UncaughtThrowError is not defined on older Rubies
1 parent e267e1f commit c8417db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/concurrent/edge/erlang_actor_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
expect(trapped_exit).to be_a Concurrent::ErlangActor::Exit
546546
expect(trapped_exit.from).to eq b
547547
expect(trapped_exit.reason).to eq b.terminated.reason
548-
expect(trapped_exit.reason).to be_a UncaughtThrowError
548+
expect(trapped_exit.reason).to be_a ArgumentError
549549
expect(trapped_exit.reason.message).to eq 'uncaught throw :uncaught'
550550
end
551551
end

0 commit comments

Comments
 (0)