aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/singleton_class_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/singleton_class_spec.rb')
-rw-r--r--spec/ruby/core/kernel/singleton_class_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/singleton_class_spec.rb b/spec/ruby/core/kernel/singleton_class_spec.rb
index b5e0703905..5dbb4f8c05 100644
--- a/spec/ruby/core/kernel/singleton_class_spec.rb
+++ b/spec/ruby/core/kernel/singleton_class_spec.rb
@@ -18,10 +18,10 @@ describe "Kernel#singleton_class" do
end
it "raises TypeError for Fixnum" do
- lambda { 123.singleton_class }.should raise_error(TypeError)
+ -> { 123.singleton_class }.should raise_error(TypeError)
end
it "raises TypeError for Symbol" do
- lambda { :foo.singleton_class }.should raise_error(TypeError)
+ -> { :foo.singleton_class }.should raise_error(TypeError)
end
end