summaryrefslogtreecommitdiff
path: root/spec/ruby/library/weakref/allocate_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/weakref/allocate_spec.rb')
-rw-r--r--spec/ruby/library/weakref/allocate_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/weakref/allocate_spec.rb b/spec/ruby/library/weakref/allocate_spec.rb
index 76e81c4e5e..e734cfd23d 100644
--- a/spec/ruby/library/weakref/allocate_spec.rb
+++ b/spec/ruby/library/weakref/allocate_spec.rb
@@ -3,6 +3,6 @@ require 'weakref'
describe "WeakRef#allocate" do
it "assigns nil as the reference" do
- lambda { WeakRef.allocate.__getobj__ }.should raise_error(WeakRef::RefError)
+ -> { WeakRef.allocate.__getobj__ }.should raise_error(WeakRef::RefError)
end
end