From 512041bf621f914c3618720d7576e45bb5502a15 Mon Sep 17 00:00:00 2001 From: eregon Date: Wed, 25 Apr 2018 08:16:09 +0000 Subject: [PATCH] Avoid "should_not raise_error" in Thread#raise spec git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/thread/raise_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ruby/core/thread/raise_spec.rb b/spec/ruby/core/thread/raise_spec.rb index f325622f24..0b18369cb9 100644 --- a/spec/ruby/core/thread/raise_spec.rb +++ b/spec/ruby/core/thread/raise_spec.rb @@ -3,11 +3,11 @@ require_relative 'fixtures/classes' require_relative '../../shared/kernel/raise' describe "Thread#raise" do - it "ignores dead threads" do + it "ignores dead threads and returns nil" do t = Thread.new { :dead } Thread.pass while t.alive? - -> { t.raise("Kill the thread") }.should_not raise_error - -> { t.value }.should_not raise_error + t.raise("Kill the thread").should == nil + t.join end end