mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 3 additions and 3 deletions
|
@ -3,11 +3,11 @@ require_relative 'fixtures/classes'
|
||||||
require_relative '../../shared/kernel/raise'
|
require_relative '../../shared/kernel/raise'
|
||||||
|
|
||||||
describe "Thread#raise" do
|
describe "Thread#raise" do
|
||||||
it "ignores dead threads" do
|
it "ignores dead threads and returns nil" do
|
||||||
t = Thread.new { :dead }
|
t = Thread.new { :dead }
|
||||||
Thread.pass while t.alive?
|
Thread.pass while t.alive?
|
||||||
-> { t.raise("Kill the thread") }.should_not raise_error
|
t.raise("Kill the thread").should == nil
|
||||||
-> { t.value }.should_not raise_error
|
t.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue