summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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