summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/value_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/value_spec.rb')
-rw-r--r--spec/ruby/core/thread/value_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/thread/value_spec.rb b/spec/ruby/core/thread/value_spec.rb
index 30e43abd1a..50c823171d 100644
--- a/spec/ruby/core/thread/value_spec.rb
+++ b/spec/ruby/core/thread/value_spec.rb
@@ -11,7 +11,7 @@ describe "Thread#value" do
Thread.current.report_on_exception = false
raise "Hello"
}
- -> { t.value }.should raise_error(RuntimeError, "Hello")
+ -> { t.value }.should.raise(RuntimeError, "Hello")
end
it "is nil for a killed thread" do