diff options
Diffstat (limited to 'spec/ruby/core/conditionvariable/signal_spec.rb')
| -rw-r--r-- | spec/ruby/core/conditionvariable/signal_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/core/conditionvariable/signal_spec.rb b/spec/ruby/core/conditionvariable/signal_spec.rb index 86383073f1..3b266cf8c6 100644 --- a/spec/ruby/core/conditionvariable/signal_spec.rb +++ b/spec/ruby/core/conditionvariable/signal_spec.rb @@ -1,5 +1,4 @@ require_relative '../../spec_helper' -require 'thread' describe "ConditionVariable#signal" do it "releases the first thread waiting in line for this resource" do @@ -25,7 +24,7 @@ describe "ConditionVariable#signal" do # wait until all threads are sleeping (ie waiting) Thread.pass until threads.all?(&:stop?) - r2.should be_empty + r2.should.empty? 100.times do |i| m.synchronize do cv.signal |
