summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/allocate_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/allocate_spec.rb')
-rw-r--r--spec/ruby/core/thread/allocate_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/allocate_spec.rb b/spec/ruby/core/thread/allocate_spec.rb
index cd9aa1ee43..0b4e4f1b1f 100644
--- a/spec/ruby/core/thread/allocate_spec.rb
+++ b/spec/ruby/core/thread/allocate_spec.rb
@@ -2,8 +2,8 @@ require_relative '../../spec_helper'
describe "Thread.allocate" do
it "raises a TypeError" do
- lambda {
+ -> {
Thread.allocate
- }.should raise_error(TypeError)
+ }.should.raise(TypeError)
end
end