Skip to content

Commit

Permalink
Merge pull request #735 from ivoanjo/fix-broken-channel-spec
Browse files Browse the repository at this point in the history
Fix wrong expected exception in spec assertion
  • Loading branch information
pitr-ch committed Jul 6, 2018
2 parents 3e0d64d + f74aece commit 956fc91
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 956fc91

Please sign in to comment.