Skip to content

Commit 4196bb1

Browse files
committed
More flexible error message matching
1 parent dd868ee commit 4196bb1

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
@@ -546,7 +546,7 @@
546546
expect(trapped_exit.from).to eq b
547547
expect(trapped_exit.reason).to eq b.terminated.reason
548548
expect(trapped_exit.reason).to be_a ArgumentError
549-
expect(trapped_exit.reason.message).to eq 'uncaught throw :uncaught'
549+
expect(trapped_exit.reason.message).to match /uncaught throw :uncaught/
550550
end
551551
end
552552

0 commit comments

Comments
 (0)