From a66bc2c01194a9c017c874a30db5b3b6bd95e966 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 28 May 2019 22:41:48 +0200 Subject: Update to ruby/spec@9a501a8 --- spec/ruby/language/yield_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/ruby/language') diff --git a/spec/ruby/language/yield_spec.rb b/spec/ruby/language/yield_spec.rb index e4e8448174..8ab698196a 100644 --- a/spec/ruby/language/yield_spec.rb +++ b/spec/ruby/language/yield_spec.rb @@ -19,6 +19,10 @@ describe "The yield call" do it "ignores assignment to the explicit block argument and calls the passed block" do @y.ze { 42 }.should == 42 end + + it "does not pass a named block to the block being yielded to" do + @y.z() { |&block| block == nil }.should == true + end end describe "taking a single argument" do -- cgit v1.2.3