aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/module/define_singleton_method_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/define_singleton_method_spec.rb')
-rw-r--r--spec/ruby/core/module/define_singleton_method_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/module/define_singleton_method_spec.rb b/spec/ruby/core/module/define_singleton_method_spec.rb
index f2b8a5ada4..eb5cb89ed1 100644
--- a/spec/ruby/core/module/define_singleton_method_spec.rb
+++ b/spec/ruby/core/module/define_singleton_method_spec.rb
@@ -6,7 +6,7 @@ describe "Module#define_singleton_method" do
define_singleton_method :a do
42
end
- define_singleton_method(:b, lambda {|x| 2*x })
+ define_singleton_method(:b, -> x { 2*x })
end
klass.a.should == 42