mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -3,7 +3,7 @@ require_relative '../../spec_helper'
|
|||
describe "Mutex#unlock" do
|
||||
it "raises ThreadError unless Mutex is locked" do
|
||||
mutex = Mutex.new
|
||||
lambda { mutex.unlock }.should raise_error(ThreadError)
|
||||
-> { mutex.unlock }.should raise_error(ThreadError)
|
||||
end
|
||||
|
||||
it "raises ThreadError unless thread owns Mutex" do
|
||||
|
@ -19,7 +19,7 @@ describe "Mutex#unlock" do
|
|||
Thread.pass until mutex.locked?
|
||||
Thread.pass while th.status and th.status != "sleep"
|
||||
|
||||
lambda { mutex.unlock }.should raise_error(ThreadError)
|
||||
-> { mutex.unlock }.should raise_error(ThreadError)
|
||||
|
||||
wait.unlock
|
||||
th.join
|
||||
|
@ -33,6 +33,6 @@ describe "Mutex#unlock" do
|
|||
|
||||
th.join
|
||||
|
||||
lambda { mutex.unlock }.should raise_error(ThreadError)
|
||||
-> { mutex.unlock }.should raise_error(ThreadError)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue