diff options
Diffstat (limited to 'spec/ruby/core/mutex/synchronize_spec.rb')
| -rw-r--r-- | spec/ruby/core/mutex/synchronize_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/mutex/synchronize_spec.rb b/spec/ruby/core/mutex/synchronize_spec.rb index 7942885197..823f29a634 100644 --- a/spec/ruby/core/mutex/synchronize_spec.rb +++ b/spec/ruby/core/mutex/synchronize_spec.rb @@ -14,15 +14,15 @@ describe "Mutex#synchronize" do m2.lock raise Exception end - end.should raise_error(Exception) + end.should.raise(Exception) end Thread.pass until synchronized - m1.locked?.should be_true + m1.locked?.should == true m2.unlock th.join - m1.locked?.should be_false + m1.locked?.should == false end it "blocks the caller if already locked" do @@ -60,7 +60,7 @@ describe "Mutex#synchronize" do m = Mutex.new m.synchronize do - -> { m.synchronize { } }.should raise_error(ThreadError) + -> { m.synchronize { } }.should.raise(ThreadError) end end end |
