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
This commit is contained in:
parent
9498d66c5d
commit
512041bf62
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user