Skip to content

Commit 956fc91

Browse files
authored
Merge pull request #735 from ivoanjo/fix-broken-channel-spec
Fix wrong expected exception in spec assertion
2 parents 3e0d64d + f74aece commit 956fc91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/concurrent/channel_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ module Concurrent
595595
it 'raises an exception when no block is given' do
596596
expect {
597597
Channel.go_loop
598-
}.to raise_error(RejectedExecutionError)
598+
}.to raise_error(ArgumentError)
599599
end
600600

601601
it 'loops until the block returns false' do

0 commit comments

Comments
 (0)