ruby-changes:51051
From: eregon <ko1@a...>
Date: Wed, 25 Apr 2018 17:16:14 +0900 (JST)
Subject: [ruby-changes:51051] eregon:r63258 (trunk): Avoid "should_not raise_error" in Thread#raise spec
eregon 2018-04-25 17:16:09 +0900 (Wed, 25 Apr 2018) New Revision: 63258 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63258 Log: Avoid "should_not raise_error" in Thread#raise spec Modified files: trunk/spec/ruby/core/thread/raise_spec.rb Index: spec/ruby/core/thread/raise_spec.rb =================================================================== --- spec/ruby/core/thread/raise_spec.rb (revision 63257) +++ spec/ruby/core/thread/raise_spec.rb (revision 63258) @@ -3,11 +3,11 @@ require_relative 'fixtures/classes' https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/thread/raise_spec.rb#L3 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/