1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-07-27 12:40:09 +02:00
parent a06301b103
commit 5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions

View file

@ -66,7 +66,7 @@ describe :queue_deq, shared: true do
it "raises a ThreadError if the queue is empty" do
q = @object.call
lambda { q.send(@method, true) }.should raise_error(ThreadError)
-> { q.send(@method, true) }.should raise_error(ThreadError)
end
it "removes an item from a closed queue" do
@ -79,7 +79,7 @@ describe :queue_deq, shared: true do
it "raises a ThreadError for a closed empty queue" do
q = @object.call
q.close
lambda { q.send(@method, true) }.should raise_error(ThreadError)
-> { q.send(@method, true) }.should raise_error(ThreadError)
end
end
end