summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-25 08:16:09 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-25 08:16:09 +0000
commit512041bf621f914c3618720d7576e45bb5502a15 (patch)
tree0981646fa43969579c03a335ea402b8ca65c0087 /spec/ruby
parent9498d66c5d22abaa45ac135905ebfbe5be755c79 (diff)
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
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/thread/raise_spec.rb6
1 files 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