summaryrefslogtreecommitdiff
path: root/spec/ruby/core/proc/fixtures/source_location.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/proc/fixtures/source_location.rb')
-rw-r--r--spec/ruby/core/proc/fixtures/source_location.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/proc/fixtures/source_location.rb b/spec/ruby/core/proc/fixtures/source_location.rb
index 468262e02a..5572094630 100644
--- a/spec/ruby/core/proc/fixtures/source_location.rb
+++ b/spec/ruby/core/proc/fixtures/source_location.rb
@@ -5,7 +5,7 @@ module ProcSpecs
end
def self.my_lambda
- lambda { true }
+ -> { true }
end
def self.my_proc_new
@@ -24,7 +24,7 @@ module ProcSpecs
end
def self.my_multiline_lambda
- lambda do
+ -> do
'a'.upcase
1 + 22
end
@@ -43,8 +43,8 @@ module ProcSpecs
end
def self.my_detached_lambda
- body = lambda { true }
- lambda(&body)
+ body = -> { true }
+ suppress_warning {lambda(&body)}
end
def self.my_detached_proc_new