diff options
Diffstat (limited to 'spec/ruby/core/kernel/lambda_spec.rb')
-rw-r--r-- | spec/ruby/core/kernel/lambda_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/lambda_spec.rb b/spec/ruby/core/kernel/lambda_spec.rb index 5c30511270..dfe36cefaa 100644 --- a/spec/ruby/core/kernel/lambda_spec.rb +++ b/spec/ruby/core/kernel/lambda_spec.rb @@ -33,7 +33,7 @@ describe "Kernel.lambda" do it "returns the passed Proc if given an existing Proc" do some_proc = proc {} - l = lambda(&some_proc) + l = suppress_warning {lambda(&some_proc)} l.should equal(some_proc) l.lambda?.should be_false end @@ -55,7 +55,7 @@ describe "Kernel.lambda" do it "does not create lambda-style Procs when captured with #method" do kernel_lambda = method(:lambda) - l = kernel_lambda.call { 42 } + l = suppress_warning {kernel_lambda.call { 42 }} l.lambda?.should be_false l.call(:extra).should == 42 end |