Skip to content

Commit

Permalink
Fix wrong expected exception in spec assertion
Browse files Browse the repository at this point in the history
It's pretty straightforward that an `ArgumentError` is raised here.
I wonder if this was changed to `RejectedExecutionError` because
somehow that was happening instead due to cross-spec interference.
  • Loading branch information
ivoanjo committed Jun 30, 2018
1 parent 0ee31d0 commit f74aece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/concurrent/channel_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit f74aece

Please sign in to comment.