diff options
Diffstat (limited to 'spec/ruby/core/mutex/try_lock_spec.rb')
| -rw-r--r-- | spec/ruby/core/mutex/try_lock_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/mutex/try_lock_spec.rb b/spec/ruby/core/mutex/try_lock_spec.rb index 8d521f4c6b..1da0735d6a 100644 --- a/spec/ruby/core/mutex/try_lock_spec.rb +++ b/spec/ruby/core/mutex/try_lock_spec.rb @@ -4,13 +4,13 @@ describe "Mutex#try_lock" do describe "when unlocked" do it "returns true" do m = Mutex.new - m.try_lock.should be_true + m.try_lock.should == true end it "locks the mutex" do m = Mutex.new m.try_lock - m.locked?.should be_true + m.locked?.should == true end end @@ -18,7 +18,7 @@ describe "Mutex#try_lock" do it "returns false" do m = Mutex.new m.lock - m.try_lock.should be_false + m.try_lock.should == false end end @@ -26,7 +26,7 @@ describe "Mutex#try_lock" do it "returns false" do m = Mutex.new m.lock - Thread.new { m.try_lock }.value.should be_false + Thread.new { m.try_lock }.value.should == false end end end |
