diff --git a/spec/concurrent/channel_spec.rb b/spec/concurrent/channel_spec.rb index 62bc69efc..abe4bb8f4 100644 --- a/spec/concurrent/channel_spec.rb +++ b/spec/concurrent/channel_spec.rb @@ -595,7 +595,7 @@ module Concurrent it 'raises an exception when no block is given' do expect { Channel.go_loop - }.to raise_error(RejectedExecutionError) + }.to raise_error(ArgumentError) end it 'loops until the block returns false' do